Vim Tips Wiki
(review and comment merge)
(Move categories to tip template)
Line 8: Line 8:
 
|version=5.7
 
|version=5.7
 
|rating=34/17
 
|rating=34/17
  +
|category1=Usage
  +
|category2=
 
}}
 
}}
 
Use cabbrev to correct command typos that you commonly make.
 
Use cabbrev to correct command typos that you commonly make.
Line 28: Line 30:
   
 
==Comments==
 
==Comments==
 
[[Category:Usage]]
 

Revision as of 10:58, 24 April 2008

Tip 22 Printable Monobook Previous Next

created February 27, 2001 · complexity basic · author glennj · version 5.7


Use cabbrev to correct command typos that you commonly make.

For example, if you tend to hold the shift key too long:

cabbrev Q quit
cabbrev W write

or, if you tend to miss the "!" and hit the "@" as well:

cabbrev q!@ q!
cabbrev wq!@ wq!

If you ever find that you actually need to type one of the typos you make, you'll need to disable cabbrev temporarily.

Comments