I would really like to be able to use IdeaVIM but I am unable to figure out where I can set my custom vim key mappings. For example instead of using Esc I would like to use Ctrl-C and instead of using hjkl I like to use wasd.
I have all these already set in my .vimrc
but IdeaVIM failed to load them. I can copy them over manually to whatever file is needed but there is no documentation on how to do this.
As of IdeaVim 0.35 (released 2014-05-15), key mappings in
~/.ideavimrc
are supported. You can putsource ~/.vimrc
in that file if you want to include mappings from~/.vimrc
.Release announcement
VIM-288
(Note: This question could probably be considered a duplicate of this other StackOverflow question.)
IntelliJ 12.1:
Settings
Keymap
from the left menuEscape
under theEditor Actions
section and add the Ctrl-C shortcut there. ("Escape" under the "IdeaVim" section didn't work for me)Following the same steps, but replacing "Escape" with "Exit Insert Mode" only partially worked for me. It exited insert mode correctly but ignored the following keystroke. So typing Ctrl-C,j,j would exit insert but only go up one line instead of two.
I've done this myself, and its pretty easy in IntelliJ 11. I know that in previous versions (9, maybe?) setting up keymap values is significantly different.
In IntelliJ 11 you can do the following:
Settings
Keymap
from the left menuExit Insert Mode
on the right side and associate whatever key you want to use, such as CTRL-CIf you like to have Vim plugin installed (I find it very handy for typing) and at the same time have Ctrl+C and Ctrl+V working for copy and paste actions, do the following:
In the IntelliJ Idea, click on
File
>Setting
. On the left pane, expandEditor
and click onVim Emulation
.Here, under the
Shortcut
column, find Ctrl+C and change it's Handler (underHandler
column) toIDE
instead ofVim
.Repeat it for Ctrl+V as well and hit
Apply
andOk
.Now, you should be able to use the keyboard shortcuts for copy and paste while keeping the Vim Emulator enabled.