(Adding categories) |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|previous=695 |
|previous=695 |
||
|next=697 |
|next=697 |
||
− | |created= |
+ | |created=2004 |
|complexity=basic |
|complexity=basic |
||
|author=Gabe Dalbec |
|author=Gabe Dalbec |
||
− | |version= |
+ | |version=6.0 |
|rating=10/8 |
|rating=10/8 |
||
− | |category1= |
+ | |category1=Mouse |
|category2= |
|category2= |
||
}} |
}} |
||
Line 35: | Line 35: | ||
---- |
---- |
||
− | What works for me is < |
+ | What works for me is <code>:set mouse-=a</code> |
---- |
---- |
||
− | [[Category:Mouse]] |
Revision as of 05:43, 13 July 2012
Tip 696 Printable Monobook Previous Next
created 2004 · complexity basic · author Gabe Dalbec · version 6.0
It drives me crazy that frequently when I click in a window, it goes into visual mode for a few characters and thus I can't type normal command mode commands. I'm finding I always have to press "v" to exit visual mode before I can use vim again.
I finally figured out how to disable visual mode using the mouse:
noremap <LeftDrag> <LeftMouse> noremap! <LeftDrag> <LeftMouse>
Comments
In my vimrc:
set mouse=nicr
No more visual mode from using mouse! :help 'mouse'
That doesn't quite work, as the mouse still puts you into visual mode (which is really all I was trying to avoid).
Also, with my way, you can use Shift-LeftDrag to still select visual.
What works for me is :set mouse-=a