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
Show all comments
Showing thread 10 of 59
This also appears to only write when changes have been made (according to some testing in neovim on my local machine).
That's insane. What if you need to type the following words in all caps?
The last would make that command from normal mode particularly annoying. Unless you meant when not in input mode... duh.