10

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?

Yar
  • 7,020
  • 11
  • 49
  • 69
Schminitz
  • 314
  • 1
  • 2
  • 13

3 Answers3

6

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.

Community
  • 1
  • 1
keso
  • 702
  • 5
  • 16
  • 1
    Wouldn't it be possible to share your compiled version as a commit to its source in github? – Hamid Oct 26 '21 at 17:29
1

You should try :set selectmode=mouse,ideaselection. It is a workaround but that worked for me. https://github.com/JetBrains/ideavim/blob/master/doc/set-commands.md

EZ_dev
  • 11
  • 2
0

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.

Andrey Vlasovskikh
  • 16,489
  • 7
  • 44
  • 62
  • 4
    Yes it only activate when selecting, but it is really sensitive. It activates too many times when i don't want. Maybe this is specific to some of my configurations. Anyway, you answered my question. – Schminitz Oct 06 '15 at 13:20