up previous next contents
Next: Leaving Your "vi" Session Up: The UNIX Editor - Previous: The Three Modes of   Contents

Opening a File For Editing

You can open a file in several ways. These are shown below:

vi <cr> Entering "vi" by itself at the command line lets you open a new file.

vi /etc/passwd This command lets you open the "/etc/passwd" file so you can make editing changes to this file.

When you first open a file with the "vi" editor, you are in "command mode".


up previous next contents
Next: Leaving Your "vi" Session Up: The UNIX Editor - Previous: The Three Modes of   Contents