I was remotely editing a new file: man-01-Intro.txt
but the machine went
down before I wrote it to disk so only the swp version was conserved. Is there anything that I can do to recover the work already done?
I'm using Vim 7.4.273
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI was remotely editing a new file: man-01-Intro.txt
but the machine went
down before I wrote it to disk so only the swp version was conserved. Is there anything that I can do to recover the work already done?
I'm using Vim 7.4.273
Edit the same file again. Vim will prompt you with a few options; say you want to Recover. Then save the file, quit Vim, and remove the swap file (otherwise Vim will prompt you again the next time you edit the same file). The result may or may not have your latest edits, but it's better than nothing. Do check that everything is ok.