Intellij Ideavim how to set key map for <ESC>
I am not aware whether something changed since this question was asked, but this works perfectly fine for me:
imap jj <Esc>
I found the solution on the ideaVim twitter page. To set jj to you will need to include the following in your ~/.ideavimrc. This works for me using Jetbrains software. You need to set the timeoutlen so it know when to stop looking for the next char in the sequence.
imap jj <Esc>
set timeoutlen=1000
Twitter Link -- https://twitter.com/ideavim/status/512932112765562880?lang=en