I've been bitten by using the command :w new_file, then start making changes thinking that I'm editing "new_file" instead of "old_file". This enhancement is for a vim mapping or command similar the :w command, but which will also switch to the new file.
I've been bitten by using the command
:w new_file
, then start making changes thinking that I'm editing "new_file" instead of "old_file". This enhancement is for a vim mapping or command similar the:w
command, but which will also switch to the new file.