Why is it "highly recommended" to set keymaps with "vim.normalModeKeyBindings" via settings.json instead of keybindings.json? #9228
Replies: 4 comments
|
I have same question, more for curiosity. |
|
This is because VSCodeVim doesn't have knowledge of what you've defined in keybindings.json, so it can't use those actions to perform more complicated actions. For instance, if you use keybindings.json to remap a to deleting a line, and then you do |
|
Specifying chorded key bindings as VSCode bindings (via UI or keybindings.json) will AFAIK also prevent the chords from being picked up by VSCodeVim. If I for example bind |
|
This all makes a lot of sense, thanks everyone! Guess the complexity and modes means that we want Vim to handle as much as possible. |
Uh oh!
There was an error while loading. Please reload this page.
The documentation states "It is highly recommended to remap keys using vim commands like "vim.normalModeKeyBindings"": can anyone explain why this is? Is it just to avoid the verbosity of keybindings.json? I am tempted to ignore this advice if that is the only reason, but want to make sure I'm not missing anything in the docs that explains why this matters.
All reactions