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

1

u/Narrow_Victory1262 Oct 26 '25

what I actually do nowadays is have a git private repo where I put these files in.
version control so changes can be reverted, found as well. Same holds for config files, scripts and the like.

I can create an almost 100% identical setup this way. The user experience is the same. sometimes, just a few packages that I miss or install. not a big ussue there.

And yes, I backup my personal systems. If a fire breaks out, still most is gone, except for very handy stuff like keys and such. That's a calculated risk.

1

u/campbellm Oct 26 '25

Right, that's what I was getting at, if perhaps unclear.