MPE/iX Shell and Utilities Reference Manual, Vol 2
vi(1) MPE/iX Shell and Utilities vi(1)
All characters in tag names are significant unless the variable taglength is non-
zero; in this case, only the given number of characters are used in the comparison.
una[bbreviate] lhs
The abbreviation lhs previously created by abbreviate is deleted.
u[ndo] undoes the last change or set of changes which modified the buffer. Global changes
and Vi macros are considered single changes that can be undone. A second undo un-
does the undo restoring the previous state. The edit command may not be undone,
since it cleans up the temporary file used to maintain undo information. You cannot
undo operating system commands and commands that write output to the file system.
unm[ap][!] lhs
deletes the map of lhs. If the flag !, this applies to the insert mode maps; otherwise it
applies to the command mode maps.
[1,$] v /pat/ commands
is the same as the global command with the ! flag; that is, a global for all non-match-
ing lines. You can use any non-alphabetic character to delimit pat instead of the
slash (/).
ve[rsion]
displays the current version information for Vi/Ex.
[.] vi[sual][type][count][flags]
enters Vi mode. If no type is specified, the current line is at the top of the screen. If
type is caret (ˆ), the bottom line of the screen is one window before the current line.
If type is a minus sign, (–), the current line is at the bottom of the screen and if type is
a period (.), the current line is in the middle of the screen.
[1,$] w[rite][!][>>][file]
writes the given range of lines to file. If two right angle brackets (>>) are included,
the lines are appended to the file’s current contents. If the current file name is not set,
file must be given; this becomes the current file name; otherwise, file (if specified) be-
comes the alternate file name. If file begins with an exclamation mark (!), it is taken
as a system command. vi writes the given range to the command through a pipe.
If a file is given, it must not already exist. The variable readonly must not be set.
If a file is not given, the file must be edited; that is, it must be the same file as that
read in. All these conditions may be overridden by using the flag !.
[1,$] wn[!][>>][file]
is similar to write, except that it begins editing the next file in the file list immediate-
ly afterwards (if the write is successful).
Commands and Utilities 1-669