Originally published at: https://www.cyberciti.biz/faq/linux-unix-vim-save-and-quit-command/
I am a new vi / vim text editor user. How do I quit the vi editor and save my changes under a Linux or Unix like operating systems? Can you tell me command to save and quit file in vim?
- I press
Escape
key - Type
:
- To save and exit vim, enter
wq!
:wq!
is forceful save and exit vim command.