Wikia

Vim Tips Wiki

Recovering files

Talk0
1,612pages on
this wiki
Revision as of 08:22, September 28, 2008 by JohnBot (Talk | contribs)

Tip 50 Printable Monobook Previous Next

created March 14, 2001 · complexity basic · author Anon · version 5.7


If the power fails, or your computer crashes, any file you were editing probably won't be saved. However, when the computer is restarted, you should be able to recover the file by typing:

vim -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, enter:

vim -r ""

You can list the recoverable files:

vim -r

Each of these commands should be executed in the directory where you were when the crash occurred.

References

Comments

Around Wikia's network

Random Wiki