vim E509: Cannot create backup file (add ! to override)

When i save file on a server in vim, i get error

“FILE_NAME.EXTN” E509: Cannot create backup file (add ! to override)
Press ENTER or type command to continue

I verified vim backupdir with command

:verbose set backupdir

That showed “backupdir=.,~/tmp,~/”, i compared it with vim installed on my PC, it looked same.

I tried to create a file on the server using touch, it failed.

root@v22013111876215233:/home/firsthost/public_html/themes/blue/styles# touch 2
touch: cannot touch `2': No space left on device
root@v22013111876215233:/home/firsthost/public_html/themes/blue/styles# 

The error was due to disk full on the server and vim was not able to create a backup file.

See vim

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *