Technical data

Using a Text Editor
7-11
Saving Your Work
You can save your work with or without quitting vi. Your document must be in com-
mand mode for you to be able to use the following commands to save your work.
Press the < ESC > key to ensure that your document is in command mode.
ZZ
:wq
:w! filename
Both the ZZ and :wq commands save your file and leave vi. You execute fewer
keystrokes by using the ZZ command.
Use the :w! filename command to save your work without leaving vi. Omitting
lename from the :w! filename command saves the current file with the same name.