Reputation: 829
I’m using the Vim extension in Visual Studio Code.
I have set up a vimrc path to use my custom vim commands. All of them work (from what I see) except this one to remap Escape:
:inoremap jj <Esc>
which always prints "jj" instead of quitting insert mode. Any idea why? Is this extension limited to keybindings in normal mode and not insert mode?
Upvotes: 0
Views: 91
Reputation: 829
Still not sure if this is a bug or what, but as a workaround, setting this remap directly in settings.json works:
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
]
Upvotes: 0