MPE/iX Shell and Utilities Reference Manual, Vol 2
vi(1) MPE/iX Shell and Utilities vi(1)
warn When this option is on, commands with an exclamation mark (!) display a warning
message if the current file has been modified. When off, no message is displayed.
The default is warn.
window
This variable gives the number of text lines available in Vi mode or the default num-
ber of lines to display for the z command.
The default is given by the –w option. If it is not specified with the –w option, its
value defaults to the environment variable
LINES
or the value found in the terminfo
database for
TERM
.
wrapmargin, wm
If this variable is non-zero in Vi insert mode, when a line reaches this number of
characters from the right of the screen, the current word moves down to the next line
automatically; you don’t have to press
ENTER.
The default is wrapmargin=0.
wrapscan, ws
If this option is off, forward searches stop at the end of the file and backward
searches stop at the beginning.
The default is wrapscan.
writeany, wa
If this option is off, the editor does not let a file marked [Not edited]overwrite
an existing file.
The default is nowriteany.
Editor Initialization
Initialization code consists of one or more Ex commands that are run when the editor starts up.
Initialization code may be obtained in several ways.
(a) If there is an environment variable named
EXINIT
with a non-null value, it is as-
sumed to hold initialization code. vi runs this code using an Ex source command.
(b) If
EXINIT
does not exist or has a null value, the editor attempts to find a file named
.exrc under your home directory. If you have an environment variable named
HOME
, the value of this variable is assumed to be the name of your home directory.
vi runs the .exrc file using an Ex source command. See environ(3) for more in-
formation on these environment variables.
Commands and Utilities 1-677