No edit summary |
(Change to TipImported template + severe manual clean) |
||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=696 |
|id=696 |
||
+ | |previous=695 |
||
− | |title=Make mouse drag not select text or go into visual mode |
||
+ | |next=697 |
||
− | |created=April 8, 2004 |
+ | |created=April 8, 2004 |
|complexity=basic |
|complexity=basic |
||
|author=Gabe Dalbec |
|author=Gabe Dalbec |
||
|version=5.7 |
|version=5.7 |
||
|rating=10/8 |
|rating=10/8 |
||
⚫ | |||
− | |text= |
||
− | 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. |
+ | 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. |
⚫ | |||
+ | <pre> |
||
⚫ | |||
⚫ | |||
+ | </pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | <pre> |
||
⚫ | |||
+ | </pre> |
||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
− | maxiangjiang--AT--hotmail.com |
||
− | , April 8, 2004 16:57 |
||
---- |
---- |
||
− | That doesn't quite work, as the mouse still puts you into visual mode (which is really all I was trying to avoid). |
+ | 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. |
Also, with my way, you can use Shift-LeftDrag to still select visual. |
||
− | Gabe |
||
− | , April 9, 2004 16:44 |
||
---- |
---- |
||
− | What works for me is :set mouse-=a |
+ | What works for me is <tt>:set mouse-=a</tt> |
− | |||
− | bljilek--AT--yahoo.com |
||
− | , November 20, 2006 16:58 |
||
---- |
---- |
||
− | <!-- parsed by vimtips.py in 0.532489 seconds--> |
Revision as of 03:43, 10 November 2007
Tip 696 Printable Monobook Previous Next
created April 8, 2004 · complexity basic · author Gabe Dalbec · version 5.7
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