Learning the vi Editor

Learning the vi EditorSearch this book
Previous: A.3 Exit CommandsAppendix A
Quick Reference
Next: A.5 Other ex Commands
 

A.4 Command Line Options

vi file

Invoke vi editor on file

vi file1 file2Invoke vi editor on files sequentially
view file

Invoke vi editor on file in read-only mode

vi -R fileInvoke vi editor on file in read-only mode
vi -r file

Recover file and recent edits after system crash

vi + fileOpen file at last line
vi +n file

Open file directly at line number n

vi +/pattern file

Open file directly at pattern

ex fileInvoke ex editor on file from UNIX


Previous: A.3 Exit CommandsLearning the vi EditorNext: A.5 Other ex Commands
A.3 Exit CommandsBook IndexA.5 Other ex Commands

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