Name
vi
Synopsis
vi [options] [files]
A screen-oriented text editor based on ex. See
Chapter 17 for more information on
vi and ex. Options
-c, -C, -L,
-r, -R, and
-t are the same as in ex.
Options
-
-ccommand Enter
viand execute the givenvicommand.-
-e Edit in
exmode.-
-F Do not make a temporary backup of the entire file.
-
-l Run in LISP mode for editing LISP programs.
-
-rfile Recover and edit file after an editor or system crash.
-
-R Read-only mode. Files can’t be changed.
-
-S No other programs can be run,
viis put in secure edit mode.-
-s This option works only when
exmode is being used. It enters into batch mode.-
-ttag Edit the file containing tag, and position the editor at its definition.
-
-wn Set default window size to n; useful when editing via a slow dial-up line.
- +
Start
vion last line of file.- +
n Start
vion line n of file.- +/
pat Start
vion line containing pattern pat. This option fails ifnowrapscanis set in your.exrcfile.
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