Полезная информация

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: veditChapter 2
UNIX Commands
Next: Reference: view


vi [options] [files]

A screen-oriented text editor based on ex. See Sections 8 and 9 for more information on vi and ex. Options -c, -C, -L, -r, -R, and -t are the same as in ex.



Enter vi and execute the given vi command.


Run in LISP mode for editing LISP programs.


List filenames that were saved due to an editor or system crash.


Recover and edit file after an editor or system crash.


Read-only mode. Files can't be changed.

-t tag

Edit the file containing tag, and position the editor at its definition (see ctags for more information).


Set default window size to n; useful when editing via a slow dial-up line.


Supply a key to encrypt or decrypt file using crypt.


Same as -x but assume file began in encrypted form.


Start vi on last line of file.


Start vi on line n of file.


Start vi on line containing pattern pat. This option fails if nowrapscan is set in your .exrc.

Previous: Reference: veditUNIX in a Nutshell: System V EditionNext: Reference: view
Reference: veditBook IndexReference: view

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System