Hi,
This is a problem that I had since my virtual machine was not stopped properly and my ssh connection was ended prematurely.
https://superuser.com/questions/204209/how-can-i-recover-the-original-file-from-a-swp-file/205131
If you have a file.swp and you want to recover it, do as they say. Open the file in VIM and then type recover.
Cheers