Vim
Vim copied to clipboard
`<C-o>` doesn't work in Replace mode
Describe the bug
Using Ctrl-O (<C-o>) in replace mode seems to do nothing, instead immediately printing out the keys that follow.
In vim this mapping works like the insert mode mapping:
CTRL-O execute one command, return to Insert mode i_CTRL-O
To Reproduce Steps to reproduce the behavior:
- Add the following to settings.json:
"vim.insertModeKeyBindingsNonRecursive": [ { "before": ["<down>"], "after": ["<C-o>", "g", "j"] }, { "before": ["<up>"], "after": ["<C-o>", "g", "k"] }, ] - Open any file in the editor
- Insert some text if not already present
- Place the text caret on a line with text on it
- Press Shift-R, which transitions vim into REPLACE mode
- Press the Up or Down arrow
- Watch as
gjorgkis inserted into the document, instead of moving the caret
Expected behavior
Step 7 should result in the text caret being moved up or down instead of inserting gj/gk.
Environment (please complete the following information):
- Extension Name:
vim - Extension Version:
1.23.2 - OS Version:
Darwin arm64 21.3.0 - VS Code version:
1.70.0