I'm victim of a witchcraft. Likely my own.
There's no Vim session open, based on the empty output of pidof vim and can open a new or existing file just fine. When I quit it with :q, however, I see to errors flashing on screen, but Vim closes nonetheless. Recording a GIF and spitting in frame I could see the two errors:
E929: Too many viminfo temp files, like /home/enrico/.viminfa.tmp!
E138: Cannot write viminfo file /home/enrico/.viminfa.tmp!
Well, this file, .viminfa.tmp does exist, but it's 0 bytes and I've not intentionally created it.
Furthermore, based on the comments I've verified that the error
- occurs if I simply empty my
~/.vimrcfile, - does not occur if I open Vim via
vim -u NONE, - occurs if I open Vim via
vim -u NONE -N.
Where does it come from? What have I broken?
~/.viminf*.tmpfiles? See:help E929, which says: "When you get error E929: Too many viminfo temp files check that no old temp files were left behind (e.g. `~/.viminf) and that you can write in the directory of the.viminfo` file."* – filbranden Feb 20 '21 at 18:32:help viminfo-file-name; basically, if you're using-i,ninviminfo,viminfofile, or the manual viminfo commands. (This could also be the result of a plugin, alas) – D. Ben Knoble Feb 20 '21 at 21:31vim -u NONE -Ndepend on what I'm using? – Enlico Feb 21 '21 at 07:37