Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IdeaVIM Keybindings not working in intellij

I just upgraded IdeaVIM to use the newly added support for window management. The problem I'm having is that the keybindings aren't working at all. I've tried editing the keymap manually, adding back the default bindings, but they're not in effect.

When I hit C-w I get some help in the modeline letting me know which keybindings are available at that prefix (l for window right, h for window left etc) but when I hit the second key nothing happens!What's going on here? I'm running ideavim 13.1.3.

like image 946
expez Avatar asked Dec 14 '22 19:12

expez


2 Answers

NOT exactly the same problem but for me Vimidea / Vim plugin was not working on Pycharm / Rubymine / Intellij

Finally found the solution!!! (ON MAC)

Just make sure that you don't have a conflict with the Keymap to refactor->extract->variable and vim emulator!

Go to settings->Keymap->MainMenu->Refactor->Extract->Variable And remove the shortcut

Now run the shortcut to make the VimEmulator to run, in Mac just hit:

Cmd+option+V (option is the key next to command)

If its still doesn't work it means that you cannot exit insert mode - make sure to bind the escape key to:

settings->Keymap->Plug-ins->ideavim->Exit Insert Mode == escape

Actually using the shortcut to start/stop VimEmulator is a great idea when you ask your team-mate help with your code and he/she is not used to working with Vim.

Just hit cmd+option+V and you are back to using the idea without Vim and again to start working with Vim again :)

like image 86
Kohn1001 Avatar answered Dec 17 '22 07:12

Kohn1001


You can enable/disble it through: shift-cmd-A, then type ideavim and you'll see a switch on there

like image 43
jhvaras Avatar answered Dec 17 '22 07:12

jhvaras