How to Exit VIM
- Want to save changes and exit? Esc + :wq + Enter
- Want to exit without saving changes? Esc + :q!
Steps
- Exit edit mode: Press Esc
- Enter quit command (choose one):
- Quit: :q
- Quit without saving: :q!
- Save + Quit: :wq
- Press Enter
Published