Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

vi(1) OSS Shell and Utilities Reference Manual
directory (dir=)
Displays the directory that contains the editing buffer. The default is dir=/tmp.
[no]edcompatible (ed)
Causes the presence of global (g) and confirm (c) suffixes on substitute commands to
be remembered and toggled by repeating the suffixes during substitutions and causes
the read (r) sufx to work like the r subcommand. The default is noed.
[no]errorbells (eb)
Precedes error messages with an <Alert> character. Setting this option off (noeb) does
not suppress the alerting in visual mode. The default is noeb.
[no]exrc If not set, ignores any .exrc file in the current directory during initialization, unless the
current directory is that named by the HOME variable. The default is noexrc.
[no]flash (fl)
Uses visual flash rather than audible bell. The default is .
hardtabs (ht=)
Tells vi the distance between the hardware tab stops on your display. The default is
ht=8.
[no]ignorecase (ic)
Ignores the distinction between uppercase and lowercase while searching for regular
expressions. The default is noic.
[no]lisp Enters vi in LISP mode. In this mode, vi appropriately indents for LISP code and the (,
), {, }, [[, and
]].
The default is nolisp.
[no]list Displays text with tabs and the end of lines marked. Tabs are displayed as ˆI and the
end of lines as $. The default is nolist.
[no]magic
Treats the characters ., [, and * as special characters in scans. In Off mode, only the (,
), and $ characters retain special meanings; however, special meaning of other charac-
ters can still be invoked by preceding the characters with a \ (backslash). The default
is magic.
[no]mesg
Turns on write permission to the terminal while in visual mode. The default is on.
[no]modeline
Runs an editor command line if found in the first five and the last five lines of the file.
An editor command line may be anywhere in a line. To be recognized as a command
line, it must contain a space or a tab followed by the string ex: or vi:. The command
line is ended by a second : (colon). The editor tries to interpret any data between the
first and second : as editor commands. The default is nomodeline.
[no]number (nu)
Displays lines prefixed with their line numbers. The default is nonu.
[no]optimize (opt)
Speeds up the operation of terminals that do not have cursor addressing. The default is
noopt.
paragraphs (para=)
Defines macro names that start paragraphs. The default is para=IPLPPPQPP LIp-
plpipbp. Single-letter nroff macros, such as .P, must include the space as a quoted
character if respecifying a paragraph. (See RELATED INFORMATION.)
104 Hewlett-Packard Company 527188-021