The following command is also useful.
It discards your edits and returns to the last saved
version of the current file:
:e!
In contrast to the # symbol,
% is useful mainly when writing out the
contents of the current buffer to a new file.
For example, a few pages earlier,
in the section "Renaming the Buffer,"
we showed how to save a second
version of the file practice with the command:
:w practice.new
Since % stands for the current filename, that line
could also have been typed:
:w %.new