MPE/iX Shell and Utilities Reference Manual, Vol 2

vi(1) MPE/iX Shell and Utilities vi(1)
[.] r[ead][!][file]
reads the contents of file and inserts them into the current file after the given line
number. If the line number is 0, the contents of the given file are inserted at the be-
ginning of the file being edited. If the current file name is not set, a file must be
given, and it becomes the current file name; otherwise, if a file is given, it becomes
the alternate file name. If the file begins with an exclamation mark (!), it is taken as
a system command. The output from that system command is read in via a pipe after
the given line number.
rec[over][file]
attempts to recover file if it was saved as the result of a preserve command or a
system or editor crash. If you do not specify file, this command displays a list of all
recoverable files.
rew[ind][!]
rewinds the file argument list back to the beginning and starts editing the first file in
the list. If the current file has been modified, an exclamation mark (!) must be speci-
fied; otherwise, you cannot leave the current file until you have written it out. If
autowrite is set, the current file is written out automatically if it needs to be.
se[t][parameter-list]
assigns or displays the values of option variables. If you do not specify a parameter
list, set displays all the variables with values that have changed since the editing ses-
sion started. If the parameter all is specified, Ex displays all variables and their val-
ues. You may use the parameter list to set or display each of many variable values.
Each argument in the list is a variable name; if it is a Boolean variable, the value is
set on or off depending on whether the name is prefixed by no. Non-Boolean vari-
ables alone in an argument are a request to display their values. You may display a
Boolean variable’s value by appending a question mark (?) to the name. You can set
numeric or string variables with
name=value
In a string variable, spaces must be preceded by a backslash. As an example,
set readonly? noautowrite shell=/bin/sh
shows the value of the readonly flag, sets noautowrite, and sets the shell to
/bin/sh.
set report report=5
shows the value of the report variable and then sets the value to 5. See section Set
Option Variables for further details.
Commands and Utilities 1-667