60

I have installed IntelliJIdea 14.0.2 just now. I do not know its default editor but it is opening my source files in vi option now. So, not letting me do default action like Ctrl + v, Ctrl + d which was present before and I used to like it.

So, how to change this behavior like present in sublime - editors?

surenyonjan
  • 2,097
  • 3
  • 17
  • 26

4 Answers4

126

disable below option in menu bar.

Tools -> VimEmulator(Ctrl + Alt + V)

redredtokki
  • 1,261
  • 2
  • 8
  • 3
  • 1
    Except for vi haters, this is the best answer. 90% of the time, I want to be in vi mode. There are just those times when... – Russ Bateman Aug 12 '15 at 16:40
  • 4
    This just saved me! I inadvertently disabled vim mode and couldn't figure it out. Re-installing the plugin didn't work nor did anything else until I saw this answer. tyvm!!!! – Mike Jan 26 '16 at 18:58
  • Cool, just added a shortcut for this, and it's to switch back and forth. Particularly if you want to use multicursor mode for a while. – axel22 Mar 17 '17 at 18:57
  • This should be the accepted answer, I don't want to get rid of the VI Emulator completely – Sayantan Dec 18 '18 at 08:06
  • Very helpful, thanks! It's great when we're pairing, and some people prefer vi, others not so much. :) – Don Branson May 27 '20 at 16:28
55

If you don't need vi keybindings, uninstall the IdeaVIM plugin.

yole
  • 92,896
  • 20
  • 260
  • 197
  • Thanks. All I wanted was not to mess again with my IDE environment settings again. Uninstalled IdeaVIM and once again my IDE is back in right place. :) – surenyonjan Jan 27 '15 at 03:44
18

If you don't want to uninstall vi, you can either turn it off, like @redredtokki states (Tools > VimEmulator), or

Change the Ctrl-X and Ctrl-V keys in File > Settings

under: Editor > Vim Emulation: enter image description here

Change the column on the right from "Vim" to "IDE".

automorphic
  • 680
  • 7
  • 18
  • This works but unfortunately some of the shortcuts aren't listed here. I'm trying to use the `ctrl + up` and `ctrl + down` to navigate to next/previous method but I can't find this in the available list. – Andrea Thacker Jan 11 '18 at 19:09
  • 1
    As of version 2018.3.3 "Vim Emulation" is listed under Editor instead of "Other Settings". – sirain Jan 29 '19 at 12:26
7

If you wanna use vim and also shortcuts like Ctrl+C/Ctrl+V/Ctrl+X, you may redefine the shortcuts as IDE shortcuts in:

File-->Settings-->Other Settings-->Vim Emulator

JavaNoScript
  • 2,345
  • 21
  • 27