{"version":"2.1.283","anchor":"vim-normal-mode-cursor-clamping-for-draft-restore-and-newli","canonical_anchor":"vim-normal-mode-cursor-clamping-for-draft-restore-and-newli","heading":"Vim mode keeps the cursor on the text and records inserted newlines","tier":"notice","area":"Terminal UI","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283\/e\/vim-normal-mode-cursor-clamping-for-draft-restore-and-newli","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283","markdown":"### Vim mode keeps the cursor on the text and records inserted newlines\n\nIn vim NORMAL mode, a restored draft puts the cursor on its last character, and newlines you insert are recorded with your typing\n\n**Unclear.** That the recorded newline is meant for vim's repeat command is inferred from a name, not confirmed.\n\n**What**\n\nTwo small fixes for people who use vim-style editing in the prompt box:\n\n- Restored draft: in NORMAL mode, the cursor now lands on the last character of the text instead of one position past the end.\n\n- Inserted newlines: a newline added with the `chat:newline` action is now recorded along with the rest of what you typed in insert mode.\n\n**Why**\n\nThese are small correctness fixes for vim-mode users, so the cursor and the recorded typing behave the way vim would.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5"}