:wq Write the current file and quit. Writing fails when the file is read-only or the buffer does not have a name. Quitting fails when the last file in the argument list has not been edited.
=> si possible on sauvegarde, et si possible on quitte (donc la date du fichier est modifiée si possible)
:x Like ":wq", but write only when changes have been made.
=> si possible et si modifié on sauvegarde, et si possible on quitte (donc la date du fichier est modifiée seulement en cas de modification)
ZZ Write current file, if modified, and quit (same as ":x"). (Note: If there are several windows for the current file, the file is written if it was modified and the window is closed).
[^] # Re: Save and Quit
Posté par Benoît Sibaud (site web personnel) . En réponse à la dépêche Vim fête son 20e anniversaire. Évalué à 2.
Pas exactement pareil (source http://vimdoc.sourceforge.net/htmldoc/editing.html#:quit ) :
:wq Write the current file and quit. Writing fails when the file is read-only or the buffer does not have a name. Quitting fails when the last file in the argument list has not been edited.
=> si possible on sauvegarde, et si possible on quitte (donc la date du fichier est modifiée si possible)
:x Like ":wq", but write only when changes have been made.
=> si possible et si modifié on sauvegarde, et si possible on quitte (donc la date du fichier est modifiée seulement en cas de modification)
ZZ Write current file, if modified, and quit (same as ":x"). (Note: If there are several windows for the current file, the file is written if it was modified and the window is closed).