Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling mouse support on ideavim

Is there a way to disable mouse support in file edition on ideavim? It is really annoying that it enters into visual mode each time I click.

It isn't possible to have the same behavior as vim without mouse in terminal, but can I have it on pycharm's ideavim?

like image 721
Schminitz Avatar asked Oct 06 '15 09:10

Schminitz


2 Answers

I also hate when the editor suddently goes into visual mode when I accidentally drag with the mouse. I ended up modifying the ideavim source and compiled my own version. I got the idea from another answer https://stackoverflow.com/a/24256022/598781

I just return immediately in the EditorMouseHandler.mouseDragged method. i.e. changed line 1772 in the file ideavim/src/com/maddyhome/idea/vim/group/MotionGroup.java to:

if (true || !VimPlugin.isEnabled()) return;

This change could have some consequences, but I don't use mouse select anyway.

like image 182
keso Avatar answered Sep 28 '22 03:09

keso


It's not possible to disable mouse support in Vim emulation. Note however that IdeaVim switches to Visual selection mode only when you're selecting text with the mouse. Simple clicks shouldn't make IdeaVim enter visual selection mode.

like image 37
Andrey Vlasovskikh Avatar answered Sep 28 '22 03:09

Andrey Vlasovskikh