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 25 of 59

Existenceblinks2 replies#
I also have a funny related thing to Tell HN:

`git --amend` -> `:wq` is shorter and faster to type than
`git --amend --no-edit`

freeCandy1 reply#
`ce` if you have fugitive
Existenceblinks#
Not going to beat `wq` on keyboard position without yet another thing (alias) in existence to maintain.
a3w1 reply#
I often have the variant with --amend --no-edit in my bash history, so that I press up about two or three times instead of writing anyting at all.
Existenceblinks#
I'm thinking if you are joking or not! You press arrow 3 times + hope it hits whereas `:wq` 3 chars with 100% certainty.