Tip #43: Using abbreviations
tip karma |
Rating 9/9, Viewed by 1044
|
created: |
|
March 9, 2001 4:27 |
|
complexity: |
|
basic |
author: |
|
Anonymous |
|
as of Vim: |
|
5.7 |
To define abbreviations, use the ab[breviate] command.
Examples:
:ab rtfm read the fine manual - Whenever you type 'rtfm' followed by a <space> (or <esc> or <cr>) vim
will expand this to 'read the fine manual'.
:ab - list all defined abbreviations
:una[bbreviate] rtfm - remove 'rtfm' from the list of abbreviations
:abc[lear] - remove all abbreviations
NB: To avoid expansion in insert mode, type CTRL-V after the last character of the abbreviation.
For a detailed description of the ab[breviate] command and some more examples refer to
:help abbreviations
<<Using marks |
Repeat last changes >>
Additional Notes
|