Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
537 points`:x` leaves the modification time of files untouched if nothing was changed.
:help :x
Like ":wq", but write only when changes have been made.
Comments (270) 59 threads
Show all comments
Showing thread 30 of 59
This solves the problem mentioned by OP because I can just `:q` anytime.
Second, in a large Excel file, the auto save is constantly slowing me down because there’s a slight hang after every cell change.
Although I don't use autosave, I don't think it matters that much with vim because you can always use undotree[0]
0: https://github.com/mbbill/undotree