Vscode-neovim: jk mapping doesn't work for escape key

Created on 4 Dec 2019  路  9Comments  路  Source: asvetliakov/vscode-neovim

I want to use 'jk' to exit insert mode, but when I map that to escape in vscode settings, then I cant use j to move down anymore.

duplicate question

Most helpful comment

Do you have a config example on how to do it? Because I can鈥檛 get it right.

All 9 comments

see #52

That's really too bad! I am so used to the 'jk' mapping for leaving insert mode, I don't know if I'll be able to switch. Looks like I'll have to go back to regular vim until it's fixed.

Due to vscode architecture and extension host latency this probably never will be fixed, sorry. I may accept PR though under an optional flag. May be someone will contribute later

In the other vim emulator for vscode, mappings like jj and jk work. Why does it work there but not in this extension?

VSCodeVim is very laggy sometimes in insert mode, especially if you're working on big projects and something like big completion list appears. This is very frustruating for me and many others so i won't do anything that will potentially make insert mode laggy.

see this and this VScode issues for reference

Is this still a problem?

nope, you can map esc to jj or jk now

Do you have a config example on how to do it? Because I can鈥檛 get it right.

Do you have a config example on how to do it? Because I can鈥檛 get it right.

@djamaile There is an example directly in the README.

I also made a comment in a related issue on how to better understand the implementation, because it is hard to understand at first glance.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hholst80 picture hholst80  路  3Comments

kkorus picture kkorus  路  4Comments

DrakeXiang picture DrakeXiang  路  5Comments

albert-ying picture albert-ying  路  4Comments

erlais picture erlais  路  3Comments