Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

vi(1) OSS Shell and Utilities Reference Manual
Keeping a Customized Change
The editing environment defaults to certain conguration options. When an editing session is
initiated, vi attempts to read the EXINIT environment variable. If it exists, the editor uses the
values dened in EXINIT, otherwise the values set in $HOME/.exrc are used. If $HOME/.exrc
does not exist, the default values are used.
The vi Character Sets
The collation sequence, as dened by the value of the LC_COLLATE environment variable,
denes the alphanumeric set used by your system. This table affects the performance of vi mac-
ros and subcommands.
The vi editor uses the collation sequence to distinguish between a small word and a big word. A
small word is bounded by letters or numbers as dened in the collation table. For example, isnt
is two small words. The (apostrophe) is not a number or an alphabetic character, and it bounds
both the small word t and the small word isn. A big word is bounded by spaces, tabs, or newline
indicators. For example, accommodate is a big word. For more information, see the section
Moving to Words.
SUBCOMMANDS
Subcommand Syntax
[named_buffer][operator][number] argument
Surrounding brackets indicate optional items.
[named_buffer]
A temporary text storage area.
[operator]
Species the subcommand or action; instructs the vi editor.
[number] A whole decimal value that species either the extent of the action or a line address.
The vi editor interprets this number in one of the following ways:
1. Go to line number:
5G
10z<Return>
2. Go forward number columns.
25<Space>
3. Scroll number of lines:
10<Ctrl-d>
10<Ctrl-u>
4. Delete number lines:
6dd
108 Hewlett-Packard Company 527188-007