Disable vim automatic visual mode using mouse

I usually use Vim for command line text file editing.

Some days ago, probably due to a change in /etc/vimrc after a system update, the behavior of the mouse changed.

Selecting some text with the mouse automatically enter visual mode. I rarely use the visual feature and when I use it I prefer using the v keyboard command.

I found this new setting pretty annoying. So I decided to disable it.

If you also want do the same you can either:

  • issue the command :set mouse-=a
  • insert the directive set mouse-=a into your ~/.vimrc file
Scroll to Top