How do I save and search in vi editor?

How do I save and search in vi editor?
Answer
The command to save the contents of the editor is :w. You can combine the above command with the quit command, or use :wq and return. The easiest way to save your changes and exit vi is with
the ZZ command. When you are in the command mode, type ZZ.
 

Tìm kiếm

Back
Top