Chapter 18. Creating Custom Commands in vi
Why Type More Than You Have To?
Save Time and Typing with the vi map Commands
you’re editing, you may
find that you are using a command sequence frequently, or you may occasionally
use a very complex command sequence. To save yourself keystrokes — or the time
it takes to remember the sequence — assign the sequence to an unused key by
Command Mode Maps
map command acts a lot like ab (Section
17.23) except that you define a macro for command mode instead of
text-input mode. The
map! command works
during text-input mode; see the following list.
Define x as a sequence of editing commands.
Disable the x definition.
List the characters ...