How do I exit Vim in Unix?

Ivanesn

New member
How do I exit Vim in Unix?
Answer
To exit Vi/Vim,
use the :q command and hit [Enter]. To save a file and exit Vi/Vim simultaneously, use the :wq command and hit [Enter] or
command. If you make changes to a file but try to quite Vi/Vim using ESC and q key, you’ll receive an error as shown in the scrrenshot below.
 

Tìm kiếm

Back
Top