Q: Vim creates .swp files for recovery. In case you fail to save, vim will be able to recover (at least some of) the file.
How to create .swp
files manually?
Vim stores the things you changed in a swap file. Using the original file you started from plus the swap file you can mostly recover your work.
You don't need to create it manually. When you use vim open a file, it will be created. You can use :sw
to see the filename. When vim close normally it will removed. The file will exists if you encounter a crash.
So if you want to create it, open the file, use :sw
or use ls -a
in another tty find the .swp
file. Then copy it.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments