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)
 |  |  |
17.9. Confirming Substitutions in vi |  | 17.11. Saving Part of a File |