UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 8.6 Interacting with UNIXChapter 8
The Vi Editor
Next: 8.8 Miscellaneous Commands
 

8.7 Macros

:ab in out
Use in as abbreviation for out. :unab inRemove abbreviation for in.
:abList abbreviations.
:map c sequenceMap character c as sequence of commands.
:unmap cDisable map for character c.
:mapList characters that are mapped.
:map! c sequenceMap character c to input mode sequence.
:unmap! c

Disable input mode map (you may need to quote the character with CTRL-V).

:map!List characters that are mapped to input mode.

The following characters are unused in command mode and can be mapped as user-defined commands.

Letters:

g K q V v

Control keys:

^A ^K ^O ^T ^W ^X

Symbols:

_ * \ =

(Note: The = is used by vi if Lisp mode is set.)


Previous: 8.6 Interacting with UNIXUNIX in a Nutshell: System V EditionNext: 8.8 Miscellaneous Commands
8.6 Interacting with UNIXBook Index8.8 Miscellaneous Commands

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System