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
- 6901 reads

That is anoying
I hardly came across something more annoying as "visual" edit mode in VIM. I'm using putty a lot and the left mouse button is to paste text, not to enter "visual" mode, thank you very much.
If I want a "visual" editor vi, or vim, is the last thing I think about.
adding set mouse-=a to a file called ~/vimrc didn't change a thing. vim insisted on "visual" mode.
Please give me back vi
The file is called ~/.vimrc
The file is called ~/.vimrc - Note the dot: without it, it won't work.
THAT drives me insane!!! I
THAT drives me insane!!! I hate to say this but that one that decided to do this as default setting should ___ right NOW!!!!
Thanks A LOT for this hint!
EDIT: removed offensive words
you shouldn't say that to
you shouldn't say that to anyone.
Thankyou thankyou ...the
Thankyou thankyou ...the mouse feature was annoying me .... now i am happy
thank you, thank you thank
thank you, thank you thank you ;)
this was annoying the crap out of me...
Thanks so much!
I had resorted to head|tail file everytime I had to copy it over because of this annoying auto visual feature. Thanks for this setting and note!
hey, thanks for that. I
hey, thanks for that. I wonder what they were thinking.
Thanks for the fix!
This has been killing me too. Now if I can only find an app that will let me cat files to the clipboard. BTW it looks like you're using Drupal for you website. Drupal rocks!
I'm glad i wasn't the only
I'm glad i wasn't the only one going nuts.. thanks!
Oh my god THANKS
Was driving me crazy, I knew something was up with my .vimrc because renaming it would restore the old behaviour, but jeez...
This was a horribad feature, leave my mouse alone >.<
thankyou very much!
it fixs haha
THANKS !!!
Now that I control my mouse, i can work again.
thank you
Aaargh. Another source of frustration conquered. Thank you. My wheel continues to work, too. Yay!
yes, that visual mouse was
yes, that visual mouse was highly irritating. thanks for the post.
good point with old dogs :)
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