resources available on the web are only touching on vim editor. I am new to vim and I don't want to mess with my workspace settings. How do I go about changingg or keeping esc and adding jk as an optional key binding to leave insert mode in Vim in Vscode.
You should change the vscode json settings.
To do that Press F2 or Ctrl+Shift+P to open the vscode command palette (command palette screenshot)
then you have to write this:
"vim.insertModeKeyBindings": [
{ //exit insert mode
"before": [
"j",
"k"
],
"after": [
"<Esc>"
]
}]
This code is mapping jk as <Esc>.
For more info on what settings the vim extension exposes, check out the documentation on github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With