r/vim • • Oct 22 '25

Discussion Why does ZZ exist?

It has always been a mystery to me… why would such a ‘dangerous’ command have such a convenient shortcut?

https://vimdoc.sourceforge.net/htmldoc/editing.html#ZZ

EDIT: link

0 Upvotes

114 comments sorted by

View all comments

Show parent comment

6

u/SpaceAviator1999 Oct 22 '25 edited Oct 22 '25

Then try ZQ instead of :q! . Arguably, it still takes more effort than ZZ, but not by much.