VsCode mapping escape to kj directions unclear
See original GitHub issueKeymaps.json should be:
[
{
"command": "vscode-neovim.compositeEscape1",
"key": "k",
"when": "neovim.mode == insert",
"args": "k"
},
{
"command": "vscode-neovim.compositeEscape2",
"key": "j",
"when": "neovim.mode == insert",
"args": "j"
}
]
for mapping kj to esc, instead of having the kk map be composite 2 and jj map being composite 1, as shown in the plugin description, shown below:
Enabling jj or jk as escape keys from the insert mode Put into your keybindings.json:
for jj
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert",
"args": "j"
}
to enable jk add also:
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
"when": "neovim.mode == insert",
"args": "k"
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
VsCode mapping escape to kj directions unclear #245 - GitHub
I've just installed the plugin 5 min ago. Was using vim extension before. Honestly I had no idea why does adding a k...
Read more >how do i change escape vim key binding to jk or something ...
To do that Press F2 or Ctrl+Shift+P to open vscode commands enter image description here ... This code is mapping jk as ....
Read more >A improved mapping to leave insert mode than jk or kj or jj : r/vim
Remap caps lock as escape, use the default escape with a better key placement.
Read more >Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
Read more >Other ways to exit Insert mode besides Escape
1. You can map any key combination anywhere, and you can't do quite anything else. Is that what you mean? · 17. Learned...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve just installed the plugin 5 min ago. Was using vim extension before.
Honestly I had no idea why does adding a k k shortcut end up with getting j k being another exit, and thought the instructions had a typo.
I usually use jj or kk to exit the insert mode.
Duplicate of #563. Refactoring the jk logic should come with more clear instructions.