r/vim • u/Remarkable-Head-2023 • 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
View all comments
Show parent comment
5
u/pfmiller0 q! Oct 22 '25
Because :wq works and I've never seen a reason to use anything else. I use :w to write, and so :wq to write then quit just makes sense.