How do I save and edit in Vim?
Answer
How to Save a File in Vi / Vim Editor in Linux
Answer
How to Save a File in Vi / Vim Editor in Linux
- Press ‘i’ to Insert Mode in Vim Editor. Once you have modified a file, press [Esc] shift to the command mode and press :w and hit [Enter] as shown below.
- Save File in Vim. To save the file and exit at the same time, you can use the ESC and
key and hit [Enter] . - Save and Exit File in Vim.