home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Learning the vi Editor

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

A.4 Command Line Options

vi file

Invoke vi editor on file

vi file1 file2 Invoke vi editor on files sequentially
view file

Invoke vi editor on file in read-only mode

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

Recover file and recent edits after system crash

vi + file Open file at last line
vi + n file

Open file directly at line number n

vi +/ pattern file

Open file directly at pattern

ex file Invoke ex editor on file from UNIX


Previous: A.3 Exit Commands Learning the vi Editor Next: A.5 Other ex Commands
A.3 Exit Commands Book Index A.5 Other ex Commands

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