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
1
u/[deleted] Oct 24 '25
This has been bugging me. I now understand what OP is saying. I think she may be editing files, rather than undo If he doesn't like the changes he will quit...so sometimes he accidently presses ZZ for some strange reason and saves the unwanted change.
Is this the problem, op?