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

messe2 replies#
You can also type ZZ (no colon) while in normal mode to exit and save.

This also appears to only write when changes have been made (according to some testing in neovim on my local machine).

Maursault3 replies#
> You can also type ZZ (no colon) while in normal mode to exit and save.

That's insane. What if you need to type the following words in all caps?

     DRIZZLE
     GRIZZLY
     BUZZARD
     PIZZAZZ
The last would make that command from normal mode particularly annoying. Unless you meant when not in input mode... duh.
messe#
"Normal mode" ≠ "Insert mode"
acupofnope#
He did say in "Normal Mode"
anthomtb1 reply#
Normal mode in vim does not have the meaning normal people associate with a normal text editor.
shiomiru#
To be fair, `normal mode' may be a vimism. Both traditional vi's and nvi's man pages refer to the vim `normal mode' as `command mode', and `insert mode' (mostly) as `input mode'. (Though :set showmode still says Insert, and `insert mode' is occasionally used on the man pages too.)