Problem:
The changes I make in files before closing are not saved in .swp files As I understand it, the swap file should save any changes if they are at least 200 characters long or nothing has been typed for 4 seconds
Steps to Reproduce:
Create new file tmp.sql
Write some text as a comment:
/* This is the comment I wrote. I did not save after I wrote it*/
Close window after about 10 seconds have passed
Restart Vim and open file using “:e”
I get the usual .swp message from vim
I type “r” to recover
Error Message:
Error: “Unable to read block 0 from /home/csarraille/docs/qua/tmp.sql
Maybe no changes were made or Vim did not update the swap file.
Environment:
My .swp files are stored in their own folder. I specify this in my .vimrc
:set directory=$HOME/.vim/swapfiles//
I use Cygwin on a Windows machine to run Vim 8.0
Included Patches: 1-1567
:set updatecount
and:set updatetime
.