I am using Vim on Windows and decided to create a separate directory for all my backup files created by vim.
backup files
I am using Vim from my command prompt
command prompt
On Linux, you can do by setting in editor- :verbose set backupdir?
Kill the spaces around =
set backupdir=D:\\VimTemp
should work if you've created the directory.