Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ideavim, use custom keys

I am using PyCharm + Ideavim and I am pretty happy with it.

However, is there any way I can change from INSERT to NORMAL mode using 'jk' instead of ESC or Ctrl-C?

like image 839
xpanta Avatar asked May 29 '13 07:05

xpanta


1 Answers

IdeaVim version 0.35 (released 2014-05-15) reads settings and key bindings from ~/.ideavimrc. You can put source ~/.vimrc in that file if you want to include mappings from ~/.vimrc.

0.33 and 0.34 read ~/.vimrc directly.

0.33 (released 2014-04-28) was the first version to implement VIM-288, including things like mapping jj to ESC. It works great, and there's a new Vim Emulation section in the IDEA preferences that lists all the conflicts between ~/.vimrc mappings and Intellij mappings, and lets you resolve the conflicts by assigning the keys to either IDEA or IdeaVim. Here is the release announcement on twitter.

(Note: This question could probably be considered a duplicate of this other StackOverflow question, and my answer here is taken from my answer there.)

like image 112
jbyler Avatar answered Oct 10 '22 03:10

jbyler