roses are red
violets are blue
to exit vim
:wq
violets are blue
to exit vim
:wq
@Configures @ghorwood @mwl “ZZ” is even shorter than “:x” (no return), and is proper vi without resorting to ex commands.
Also both ZZ and :x are preferable to :wq because they don’t needlessly rewrite the file if it hasn’t changed.