Open ykhan21 opened 2 months ago
// settings.json
"vim.visualModeKeyBindings": [
{ "before": ["K"], "commands": ["editor.action.moveLinesUpAction"] },
{ "before": ["J"], "commands": ["editor.action.moveLinesDownAction"] }
]
In VISUAL or VISUAL LINE mode, J and K now move lines up and down, while automatically adjusting indentation. Most nvim tricks can be accomplish using the settings.json or keybindings.json since they offer a lot of options to play with.
Describe the bug
vmap J :m '>+1<CR>gv=gv
andvmap K :m '<-2<CR>gv=gv
do not work as expected. These mappings work in vim but not in VSCodeVim. Normally, they allow you to highlight a few lines and then move them withJ
orK
.To Reproduce Steps to reproduce the behavior:
.vimrc
.V
. Then try moving the line down with theJ
mapping.Expected behavior Normally, these maps allow you to highlight a few lines and then move them with
J
orK
.Log
Environment (please complete the following information):