How do I save a file after editing in vi?

How do I save a file after editing in vi?
Answer
How to Save a File in Vi / Vim Without Exiting
  1. Switch to command mode by pressing the ESC key.
  2. Type : (colon). This will open the prompt bar in the bottom left corner of the window.
  3. Type w after the colon and hit Enter. This will save in Vim the changes made to the file, without exiting.
11 апр. 2019 г.
 

Tìm kiếm

Back
Top