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

Earlier comments
OlleTO#
Maybe well-known, but: Ctrl-C exits interactive mode and goes back to normal mode. Easier to reach than Esc and I usually find rebinding/aliasing keys to be too much of a hassle
hdjjhhvvhga#
Cumulatively, you've just saved quite a lot of my time - thanks!
villgax1 reply#
A lot of the pain could've been avoided if they just wrote somewhere that you need to type ':' or something else to access help/commands when inside of vi/vim
lucb1e#
I wonder where the first place is for people to look when needing help with random commands.

    man vim
The :help command is mentioned in the second paragraph. And repeated the third. Though most people probably just use web searches anyway nowadays.
Invictus0#
You could also just use a modern text editor with autosave

Load more comments