MPE/iX Shell and Utilities Reference Manual, Vol 2

vi(1) MPE/iX Shell and Utilities vi(1)
(c) If the
EXINIT
variable or the $HOME/.exrc file sets the option variable exrc and
there is a file named .exrc under the current directory, it is assumed to hold initiali-
zation code. vi runs this code using an Ex source command.
(d) vi executes any commands given by the –c or + options.
vi reads the .exrc file as if it were a sequence of keystrokes typed at the beginning of an Vi
session. As a result, the contents of .exrc must be the same as the characters you would
type if you were in Vi. In particular, if the input contains an unusual character (for example, a
carriage return) that you would normally precede with
CTRL-V, there must be a CTRL-V in the
.exrc file. When using vi to create .exrc, you must type CTRL-VCTRL-V to put a CTRL-V
character into your initialization file, then CTRL-V followed by the special character. The
.exrc file must show both CTRL-V and the special character.
FILES
vi uses the following files and directories:
/tmp directory used for temporary files if neither
TMPDIR
nor
TMP
is defined
/tmp/VInnnnn.mmm
temporary files
.exrc startup file
ENVIRONMENT VARIABLES
vi uses the following environment variables:
COLUMNS
contains the number of columns between the left and right margins (see option
variable wrapmargin). This is also used as the horizontal screen size.
ENV
contains the path name of a file containing MPE/iX
Shell commands. When
you invoke sh, it runs this file before doing anything else.
EXINIT
contains a list of Vi commands to be run on editor startup.
HOME
contains the directory to be searched for the editor startup file.
LINES
contains the number of lines in a screenful (see option variable window).
This is also used as the vertical screen size.
PATH
contains a list of directories to be searched for the shell command specified in
the Ex commands read, write, and shell.
SHELL
contains the name of the command interpreter for use in !, shell, read,
write and other Ex commands with an operand of the form !string. The
default is the sh utility.
1-678 Commands and Utilities