How to exit from VIM editor

Hit the ESC key(for going into "command mode"), then type:

  • : + q to quit;
  • : + q + ! to quit without saving;
  • : + x to write & quit;
  • : + q + a to quit all;
  • Z + Z (upper case) to write/save if the file was changed.

 

ecasa
Graduate at the Faculty of Electronic Engineering of Bologna.
Posted in Vim and tagged .

Leave a Reply