Important Command-Line Arguments
elvis is not
typically installed as vi, though
it can be. If invoked as ex, it
operates as a line editor and allows the Q command from vi mode to switch into ex mode.
elvis has a number of command-line options. The most useful are described here:
-aLoad each file named on the command line into a separate window.
-ccommandExecute command upon startup. This is the POSIX version of the historical
+command syntax. (The old syntax is also accepted.)-ffilenameUse filename for the session file instead of the default name. Session files are discussed later in this chapter.
-GguiUse the given interface. The default is the
termcapinterface. Other choices includex11,windows,curses,open, andquit. Not all the interfaces may be compiled into your version of elvis.-iStart editing in input mode instead of in command mode. This may be easier for novice users.
-ologfileRedirect the startup messages out to a file, instead of
stdout/stderr. This is of critical importance to MS Windows users because Windows discards anything written to standard output and standard error, which made WinElvis configuration problems almost impossible to diagnose. With-ofilenameyou can send the diagnostic info to a file and view it later.-rPerform recovery after a crash.
-RStart editing each file in read-only mode.
-sRead an ex script from standard input and execute (per the POSIX standard). This bypasses all initialization scripts.
-SSet the option
security=saferfor the whole ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access