Tip #22: handle common typos for :commands
tip karma |
Rating 22/14, Viewed by 2137
|
created: |
|
February 27, 2001 7:11 |
|
complexity: |
|
basic |
author: |
|
[email protected] |
|
as of Vim: |
|
5.7 |
I frequently hold the shift key for too long when typing, for instance :wq, and end up with :Wq. Vim then whines "Not an editor command: Wq"
In my .vimrc, I have taught vim my common typos:
command! Q quit
command! W write
command! Wq wq
" this one won't work, because :X is already a built-in command
command! X xit
<<easy pasting to windows apps |
Vim xterm title >>
Additional Notes
|