Vim
Vim copied to clipboard
j/k don't preserve column
I know this has been posted in the past for gj/gk, but this also seems to be broken whenever moving the cursor up or down.
Basically, in this scenario:
abc
a
abc
If you have your cursor on c
and move to the other abc
line, the cursor ends up on a
in the other line for any of the following:
- normal mode
j
/k
- insert mode
up
/down
- visual mode
j
/k
If I reload VS Code with extensions disabled and use up
/down
, this bug does not exist.
FWIW, this seems to be a bandaid fix:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["j"],
"commands": ["cursorDown"]
},
This is caused for this option: "vim.foldfix": true
, once disabled, is gonna work just fine.
duplicates #8840
FWIW, this seems to be a bandaid fix:
"vim.normalModeKeyBindingsNonRecursive": [ { "before": ["j"], "commands": ["cursorDown"] },
Please note that this seems to work with "vim.foldfix": true
!