It is a comply with as much as this query: Why doesn't vim at all times give me the choice to delete a swap file?
My laptop computer died with some Vim periods open. These had been all information I had already saved, so I do not want the swap information, however the “Delete” choice is not current once I edit a few of them. As described within the query above, Vim thinks the earlier course of continues to be working:
Discovered a swap file by the title "~/.vim/tmp//%homepercentdominickpastorepercentanalysispercentcodegenpercentrabbitmq.c.swp" owned by: dominickpastore dated: Tue Might 12 13:56:53 2020 file title: ~dominickpastore/analysis/codegen/rabbitmq.c modified: no consumer title: dominickpastore host title: carbon course of ID: 8903 (nonetheless working) Whereas opening file "rabbitmq.c" dated: Tue Might 12 13:56:49 2020
The factor is, my laptop computer was totally lifeless, so I do know for a indisputable fact that the earlier course of just isn’t nonetheless working! And simply to make sure, I checked if there may be one other course of with that PID, and there may be not.
Curiously, it solely did this for two of 5 information I had open (all in several situations of Vim). It correctly acknowledged the opposite three as gone.
How does Vim decide if the earlier course of continues to be working? Why is it generally mistaken?