ex-mode icon indicating copy to clipboard operation
ex-mode copied to clipboard

Implement :x rigorously

Open lloeki opened this issue 8 years ago • 0 comments

Shouldn't update mtime when no changes were made, whereas :w always writes (so, touches the file).

For reference:

:[range]x[it][!] [++opt] [file]
            Like ":wq", but write only when changes have been made.

Also, some peculiarities:

$ vim foo bar
:xa
# exits and nothing written
$ vim foo bar
:x
# warns and nothing written
$ vim foo bar
:wqa
# weirdly, exits and nothing written
$ vim foo bar
:wq
# writes foo, then warns

lloeki avatar Jul 29 '15 18:07 lloeki