In a pure BSD environment, nvi is installed under the names ex, vi, and view. Typically they are all links to the same executable, and nvi looks at how it is invoked to determine its behavior. (UNIX vi works this way too.) It allows the Q command from vi mode to switch into ex mode. The view variant is like vi, except that the readonly option is set initially.
nvi has a number of command-line options. The most useful are described here:
[50]As with anything labelled "secure," blind trust is usually inappropriate. Keith Bostic says, though, that you can trust nvi's secure option.
Copyright © 2003 O'Reilly & Associates. All rights reserved.