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
0

do you know what the command is? 

0

I tried

imap kj <ESC>
sethandler <k-j> a: <Esc>

0

Try:

nnoremap kj <Esc>

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.

0
nnoremap

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:

inoremap

So the full command would be:

inoremap kj <Esc>
1

请先登录再写评论。