Next: Reading Files
Up: The vi Editor
Previous: The vi Editor
There are a number of ways (actually
ex commands) of getting out of vi:
- q
- Quit vi if no changes are pending.
- q!
- Quit vi regardless of whether changes are
pending or not.
- ZZ
- Write any changes (if needed) and exit.
To write any changes in the active file to disk, enter the
command ``:w''.
Viewed this way, ``:ZZ'' is the same as ``:w'' followed by
``:q''.
Next: Reading Files
Up: The vi Editor
Previous: The vi Editor
Gordon Haverland
Sat Oct 9 13:50:48 MDT 1999