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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions