my neovim always shows this message after saving. Cannot create backup file (add ! to overwrite)
When I type verbose set backupdir
the output is: backupdir=.,~/.local/share/nvim/backup
, which is weird because It should be set up by default.
I made sure the folder exists. After I set the value in init.vim to ~/.local/share/nvim/backup
, then it worked. But I would like to know where the problem started.
Is there a location where neovim takes default values for unset variables? Maybe it was overwritten.