UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 30.38 Finding Your Place with Undo Chapter 31Next: 31.2 Save Time and Typing with the vi map Commands
 

31. Creating Custom Commands in vi

Contents:
Why Type More Than You Have To?
Save Time and Typing with the vi map Commands
What You Lose When You Use map!
vi @-Functions
Keymaps for Pasting into a Window Running vi
Protecting Keys from Interpretation by ex
Maps for Repeated Edits
More Examples of Mapping Keys in vi
Good Stuff for Your .exrc File
Repeating a vi Keymap
Typing in Uppercase Without CAPS LOCK
Text-Input Mode Cursor Motion with No Arrow Keys
Making Cursor Keys Work in vi Text-input Mode
Don't Lose Important Functions with vi Maps: Use noremap
Fooling vi into Allowing Complex Macros
vi Macro for Splitting Long Lines

31.1 Why Type More Than You Have To?

Keymapping - storing complex command sequences so that they can be executed with a single keystroke - is one of my favorite timesavers. There's nothing like typing one key and watching a whole string of work take place. For repetitive edits (e.g., font changes) it's a real wrist-saver, too. In this chapter we show you how to:

- EK


Previous: 30.38 Finding Your Place with Undo UNIX Power ToolsNext: 31.2 Save Time and Typing with the vi map Commands
30.38 Finding Your Place with Undo Book Index31.2 Save Time and Typing with the vi map 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