When you first log on after the system
is running again, you will receive a mail message stating
that your buffer has been saved. In addition, if you type the command:
$ ex -r
or:
$ vi -r
you will get a list of any files that the system has saved.
Use the -r option
with a file name to recover the edited buffer.
For example, to recover the edited buffer of the file
practice after a system crash, enter:
$ vi -r practice
It is wise to recover the file immediately, lest you inadvertently
make edits to the
file, and then have to resolve a version skew between the preserved buffer
and the newly edited file.