Pregunta

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?

¿Fue útil?

Solución 2

Currently it's not possible to remap keys in IdeaVim. You can only customize standard PyCharm shortcuts using Settings|Keymap. Please vote for the feature request VIM-288.

Otros consejos

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.)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top