What
Vim mode lets you edit your prompt with vim-style keys. How it enters insert mode, where typing adds text, has been reworked:
- The change operator deletes the chosen text, keeps it in the register (vim's clipboard), and calls
enterInsertat the start of that range. Before, it inserted replacement text and moved the cursor itself. enterInsertapplies NFC normalisation and places the cursor by whole visible characters. NFC normalisation stores accented letters in one standard form.setTextpasses the previous text and cursor position to the input.- Dot-repeat (repeating the last change with
.) and the visual-mode change path share the same text setter.
Why
Change 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.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
The finding does not describe the specific misbehaviour these changes correct.