{"version":"2.1.281","anchor":"vim-mode-insertundo-fixes-for-composed-characters-and-rema","canonical_anchor":"vim-mode-insertundo-fixes-for-composed-characters-and-rema","heading":"Vim mode: change commands and insert mode reworked","tier":"notice","area":"Terminal UI","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/vim-mode-insertundo-fixes-for-composed-characters-and-rema","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Vim mode: change commands and insert mode reworked\n\nVim mode now enters insert mode through enterInsert for change commands, with handling for accented and combined characters\n\n**Unclear.** The finding does not describe the specific misbehaviour these changes correct.\n\n**What**\n\nVim mode lets you edit your prompt with vim-style keys. How it enters insert mode, where typing adds text, has been reworked:\n\n- The change operator deletes the chosen text, keeps it in the register (vim's clipboard), and calls `enterInsert` at the start of that range. Before, it inserted replacement text and moved the cursor itself.\n\n- `enterInsert` applies NFC normalisation and places the cursor by whole visible characters. NFC normalisation stores accented letters in one standard form.\n\n- `setText` passes the previous text and cursor position to the input.\n\n- Dot-repeat (repeating the last change with `.`) and the visual-mode change path share the same text setter.\n\n**Why**\n\nChange commands now behave more like real vim. The character handling likely fixes cursor jumps and undo problems when typing accented or combined characters in insert mode.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}