When I try to save a file I receive the error

E506: Can't write to backup file (add ! to override)

It's working if I use :w!

I'm using neovim.

:se backup? backupdir? backupext? 

Use this comand to find the folder used for backups.

Then create the backup folder:

mkdir ~/.vim-tmp
  • 1
    What if the backup folder already exists?
    – Moberg
    Jun 3 '20 at 8:50
  • Yeah. You saved my time. Thanks.
    – GhitaB
    Dec 24 '20 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.