Lurker News
`: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 3 of 59

joeatwork3 replies#
This is the first time my life has changed from just reading a Hacker News headline.
cassepipe2 replies#
I can't help but see that argument as post rationalization from people who have bee using :wq their whole life

\s
Been using :x from the start about 4 years ago and I never accidentally encrypted a file.

dgabriel#
Same (but for a longer period of time). I'm kind of surprised people don't know this.
pkulak2 replies#
Same. Been using :x for about 20 years. Had no idea there was some similar encryption nonsense.

Continue this thread — 2 replies

aidenn01 reply#
Have you learned about "ZZ" yet?
_blz2#
":u" updates file (writes only if changed) instead of ":w" (which always writes).