Tip 50 Printable Monobook Previous Next

created 2001 · complexity basic · 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.



Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.