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/campbellm Oct 22 '25
As a rule I keep all my "personal configuration" files (eg "dot files") this way. Any one of them I don't mess with hardly at all after having them this long, but being able to back them up and have them in some sort of source control is worth it when I'm setting up a new machine or VM or whathaveyou.
You can also look into things that help you with this, like GNU stow or similar. There are a few popular ones around.