December 2018
Beginner
320 pages
8h 57m
English
This mode is used to execute editing commands. The most popular operations performed in this mode include saving a file to disk, closing a file, and exiting vi editor without saving a file to disk. Line Mode operations require the Enter key to be pressed after the command is typed. Some of the most popular operations performed in Line Mode are described in the following table:
|
Operations |
USAGE |
|
Save and exit operations |
|
|
:q |
Quits the vi editor only if no changes have been made to the file being edited |
|
:q! |
Quits the vi editor without saving the current changes in the opened file |
|
:wq |
Writes/saves the contents of the file to disk and exits the vi editor |
|
:x |
Writes/saves the contents of the file to disk ... |
Read now
Unlock full access