home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

8.7 Macros

:ab in out Use in as abbreviation for out .
:unab in Remove abbreviation for in .
:ab List abbreviations.
:map c sequence Map character c as sequence of commands.
:unmap c Remove map for character c .
:map List characters that are mapped.
:map! c sequence Map character c to input mode sequence .
:unmap! c

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

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

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


g K q V v

Control keys

^A ^K ^O ^W ^X


_ * \ =

(Note: the = is used by vi if Lisp mode is set. Different versions of vi may use some of these characters, so test them before using.)

Previous: 8.6 Interacting with Unix UNIX in a Nutshell: System V Edition Next: 8.8 Miscellaneous Commands
8.6 Interacting with Unix Book Index 8.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