How to exit VIM and get back to 'normal' terminal?

:q is not good because you need to save the file manually before quit.

If you use main window only(no tabs), :wq or equivalent ZZ is better. They will save and quit. ZZ is easier to type.

I use tabs often, so normal commands :wq or ZZ can't fit my need.

Then I made such mapping in vimrc

"Quit vim with saving all tabs and buffers
nnoremap WQ :wqa<CR>

After this, I forget all other quit options, only this one to fit all.


Just found out that I need to use :q or :q!