You can use :w to save an entire buffer (the copy of the file you are editing) under a new filename.
Suppose you have a file practice, containing 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 check_me, give the command:
:w check_me
Your old version, in the file practice, remains unchanged (provided that you didn't previously use :w). You can now quit the old version by typing :q.
-- LL, from Learning the vi Editor (O'Reilly, 1998)
Copyright © 2003 O'Reilly & Associates. All rights reserved.