Typically “:w” is used to save the current file as no file name is given. But with a file name specified, it can be saved to another file or even append to another file. However this is like “Save a copy” operation ans user will be still editing current file only.

To save a copy of currently edited file to an another file, use

:w file2.txt

To append a copy of currently edited file to an another file, use

:w >>file2.txt