:x

Category: Vim/Neovim

:x

Save and quit (only writes if changes exist)

Like :wq but only writes to disk if the file has actually been modified.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.