MPE/iX Shell and Utilities Reference Manual, Vol 2

vi(1) MPE/iX Shell and Utilities vi(1)
[1,$] wq[!][>>][file]
is similar to write, except that it exits the editor immediately afterwards (if the write
is successful).
[1,$] x[it][!][file]
if you have modified the current file since the last write, performs a write command
using the specified range and file name and terminates.
[.,.] y[ank][buffer][count]
copies the given line range to the specified buffer (a letter from a through z). If a buf-
fer is not specified, the unnamed buffer is used.
Since the edit command does not destroy buffers, you can use that command in con-
junction with put and yank to move text between files.
[.+1]z [type][count][flags]
displays count lines. If no count is specified, Ex uses the current value of the
scroll variable. The lines are displayed with the given line located according to
the type.Iftype is a plus sign (+), the editor displays the given line and a screenful
after that. If type is a period (.), the editor displays a screenful with the given line in
the middle. If type is a minus sign (-), the editor displays a screenful with the given
line at the end. If type is a caret (ˆ), the editor displays the screenful before that and
if type is an equals sign (=), the current line is centered on the screen with a line of
hyphens displayed immediately before and after it. The current line indicator points
to the last line displayed.
[.,.] <[<...] [count][flags]
shifts the line range by the value of the shiftwidth variable. If there are multiple
left angle brackets (<), each one causes another shift. The current line indicator
points to the last line of the range. If a count is specified, that many lines are shifted.
[.,.] >[>...] [count][flags]
shifts the line range right by the value of the shiftwidth variable. If there are
multiple right angle brackets (>), each one causes another shift. The current line in-
dicator points to the last line of the range. If a count is specified, that many lines are
shifted.
[range] ! command
submits command to be run by the command interpreter named by the shell vari-
able. If a range is given, the command is invoked with the contents of that line range
as input. The output from the command then replaces that line range. Thus
1,$!sort
sorts the entire contents of the file.
1-670 Commands and Utilities