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
Earlier commentsexit & save
ZZ
exit without save
ZQ
these are vi(m) commands, the :x & :wq crap is there for ed-compatibility
but: whatever floats your boat ;))
All comments shown.
Couldn't load more comments. Check your connection and try again.