Suppose you have a file practice, which contains
600 lines. You open the file and make extensive edits.
You want to quit but save both the old version of
practice and your new edits for comparison.
To save the edited
buffer in a file called practice.new, give the command:
:w practice.new
Your old version, in the file practice, remains unchanged
(provided that you didn't previously use :w).
You can now quit editing the new version by typing :q.