pycharm vim extension: How to remap “k+j” to Escape key?
I wanted to know how I can use the same setting in pycharm as in VSCode.
"vim.insertModeKeyBindings": [
{
"before": ["k", "j"],
"after": ["<Esc>"]
}
]
*vscode setting to change vim key bindings
Please sign in to leave a comment.
Hi, you can remap IdeaVim key bindings similar to .vimrc https://www.jetbrains.com/pycharm/guide/tips/enable-ideavim/
do you know what the command is?
I tried
imap kj <ESC>
sethandler <k-j> a: <Esc>
Try:
Works for me, however only in command mode, and I don't see how it's helpful as it breaks some basic navigation.
If it doesn't work, first create a shortcut that would work for you in vanilla vim, then try to use the same in IdeaVim.
doesn't remap the key if it has already been set (like with a plugin) and the preceding `n` means that this binding only works in "normal"/"command" mode if you want it to work in insert mode use:
So the full command would be: