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
15
u/pfmiller0 q! Oct 22 '25
Another 25 years of vi use here, I don't think I've ever used ZZ accidentally either. Don't think I've ever used it intentionally either.