How do I save changes in vim and exit?

Ngô Quốc Huy

New member
How do I save changes in vim and exit?
Answer
To save a file and exit Vim:
  1. Switch to command mode by pressing the ESC key.
  2. Press : (colon) to open the prompt bar in the bottom left corner of the window.
  3. Type x after the colon and hit Enter. This will save the changes and exit.
11 апр. 2019 г.
 

Tìm kiếm

Back
Top