[Chapter 8] 8.7 Macros
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:59:56Z

#

| Chapter 8 The Vi Editor |

## 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` | Disable map for character `c`.
:map | List characters that are mapped.
:map! `c sequence` | Map 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.)

8.6 Interacting with UNIX |  | 8.8 Miscellaneous Commands