Originally published at: https://www.cyberciti.biz/faq/linux-unix-exit-vim-editor/
I am a new Linux/Unix user. How do I exit the VIM / vi editor on Linux/Unix-like operating systems?
To exit without saving :q!
To exit saving “Shift zz”, so two capitol Z, or :wq