In a pure BSD environment, nvi
under the names ex
. Typically they are all links
to the same executable, and nvi
looks at how
it is invoked to determine its behavior.
works this way too.)
It allows the
command from vi
to switch into ex
variant is like vi
except that the
option is set initially.
has a number of command-line options.
The most useful are described here:
upon startup. This is the POSIX
version of the historical
syntax, but nvi
is not limited to positioning commands.
(The old syntax is also accepted.)
Don't copy the entire file when starting to edit.
This may be faster, but allows the possibility of someone else
changing the file while you're working on it.
Start in read-only mode, setting the
Recover specified files, or if no files are listed on the command
line, list all the files that can be recovered.
Run with the
option set, disallowing
access to external programs.[
Enter batch (script) mode. This is only for ex
is intended for running editing scripts. Prompts and non-error messages
are disabled. This is the POSIX version of the historic "-"
Start editing at the specified tag
Set the initial window size to size