{"version":"2.1.283","anchor":"vim-insert-mode-records-enter-ctrlj-newlines-for-dot-repe","canonical_anchor":"vim-insert-mode-records-enter-ctrlj-newlines-for-dot-repe","heading":"Vim mode now remembers new lines typed in insert mode when you repeat an edit","tier":"notice","area":"Terminal UI","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283\/e\/vim-insert-mode-records-enter-ctrlj-newlines-for-dot-repe","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283","markdown":"### Vim mode now remembers new lines typed in insert mode when you repeat an edit\n\nIn vim mode, new lines typed with Enter or Ctrl+J during insert mode are now recorded so the `.` repeat command can replay them\n\n**Unclear.** It is not confirmed that `.` now replays the new line correctly, because the code that stores and replays recorded inserts was not examined.\n\n**What**\n\nClaude Code's input box has an optional vim mode, which lets you edit your prompt with vim-style keys. In insert mode, a new line typed with Return, Enter or Ctrl+J is now recorded as part of the insert. In multiline mode, when the backslash-then-Return shortcut is not turned off, Return also records the backslash that goes with it. Other typed text is recorded as before.\n\n**Why**\n\nIn vim, `.` repeats your last edit. Repeating an insert that contained a new line should now put the new line back in too.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5"}