Disable vim automatic visual mode using mouse
Submitted by fabio on Thu, 2007-07-12 11:41.
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:
- issue the command :set mouse-=a
- insert the directive set mouse-=a into your ~/.vimrc file
- fabio's blog
- 2282 reads

thanks, tip was really
thanks, tip was really helpful.
i was trying to copy the name of function from the vim editor into gbd window. Was unsuccessful till now :)
Oh dear, THANK YOU!
It was driving me crazy too, I thought at first that there was sth wrong with my laptop.
Looks like vim people can't teach old dogs new tricks:)
cheers
I too had this problem.
I too had this problem. However, one thing I now miss about vim is that the mouse wheel no longer works. It seems as if setting mouse=a instead of mouse-=a, while producing the annoying auto-visual mode behavior, also enables the mouse wheel. Ah well, the trade-offs are worth it.
thank you for posting this
thank you for posting this fix. This problem has been driving me nuts
Post new comment