4

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.

1 Answer 1

4
:se backup? backupdir? backupext? 

Use this comand to find the folder used for backups.

Then create the backup folder:

mkdir ~/.vim-tmp
4
  • 3
    What if the backup folder already exists?
    – Moberg
    Commented Jun 3, 2020 at 8:50
  • Yeah. You saved my time. Thanks.
    – GhitaB
    Commented Dec 24, 2020 at 13:20
  • @Moberg refresh Commented Jan 11 at 21:43
  • @Abdusalammohamed what do you mean?
    – Moberg
    Commented Jan 17 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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