< cd ..
How to exit Vim
•how-to-exit-vim.md
How to exit Vim
It is the question that has plagued humanity for decades. You have entered the editor. You have typed some text. Now, you wish to leave. But you cannot.
The Standard Method
- Press
Esc(to ensure you are in Normal mode) - Type
:wq - Press
Enter
This writes (saves) and quits.
The Panic Method
- Press
Escrepeatedly - Type
:q! - Press
Enter
This quits without saving. Use this when you have destroyed the file configuration and just want to go home.
The Nuclear Option
Unplug the computer.