Tip #50: Recovering files
tip karma |
Rating 20/8, Viewed by 1257
|
created: |
|
March 14, 2001 14:27 |
|
complexity: |
|
basic |
author: |
|
Anonymous |
|
as of Vim: |
|
5.7 |
If your computer has crashed while editing a file, you should be able
to recover the file by typing
vi -r <filename>
where <filename> is the name of the file you were editing at the time
of the crash.
If you were editing without a file name, give an empty string as argument:
vim -r ""
To get a list of recoverable files start vim without arguments:
vim -r
For more information about file recovery refer to:
:help recovery
<<Switching case of characters |
Entering german umlauts >>
Additional Notes
|