
vi Configuration | 735
vi
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
vi Configuration
This section describes the following:
• The :set command
• Options available with :set
• Sample .exrc file
The :set Command
The :set command allows you to specify options that change characteristics of
your editing environment. Options may be put in the ~/.exrc file or set during a vi
session.
The colon does not need to be typed if the command is put in .exrc:
Options Used by :set
Table 9-1 contains brief descriptions of the important set command options. In
the first column, options are listed in alphabetical order; if the option can be
abbreviated, that abbreviation is shown in parentheses. The second column shows
the default setting. The last column describes what the option does, when
enabled.
This table lists set options for vi, with the addition of important vim options.
Other versions of vi may have more or fewer or different options. See your local
documentation, or use :set all to see the full list. Options that receive a value are
marked with an =.
q Record keystrokes. {vim}
^Q Same as ^V. {vim} (On some terminals, resume data flow.)
^T Return to the previous location in the tag stack. (vim)
^] Perform a tag lookup on the text under the cursor.
^\ Enter ex line-editing mode.
^^ (Caret key with Ctrl key pressed) Return to previously edited file. ...