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:

  1. issue the command :set mouse-=a
  2. insert the directive set mouse-=a into your ~/.vimrc file

thanks, tip was really

Submitted by sundeep (not verified) on Fri, 2008-03-28 09:10.

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!

Submitted by jiki (not verified) on Tue, 2007-11-06 21:38.

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.

Submitted by Jobias (not verified) on Fri, 2007-09-14 21:09.

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

Submitted by Anonymous (not verified) on Fri, 2007-08-03 15:14.

thank you for posting this fix. This problem has been driving me nuts

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <img> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.

More information about formatting options

3 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.