Fandom

Vim Tips Wiki

Recovering files

Redirected from VimTip50

1,624pages on
this wiki
Add New Page
Talk0 Share

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.

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.

ReferencesEdit

CommentsEdit

Also on Fandom

Random Wiki