Since the question appeared in August of 2012, over 1 million 2 million people have learned how to quit (exit?) Vim.

No one said exiting Vim would be easy.

*chuckles*


My favorite exit method is exit and save by pressing Z twice from command mode. Those keystrokes lead to a quick exit.

Simple ways to quit Vi or Vim from command mode (tip: hit Esc to leave insert mode and enter command mode):

  • :q - quit
  • :q! - quit without saving the file
  • :wq - write and quit

Update: On September, 10th 2019, I checked the page views and they’ve reached 2 million.