I\'m building a custom vimrc to improve my workflow, and I really liked the idea of setting a centralized directory to keep all backup, swap and undo files together, like th
I add this answer because I find it really frustrating.
This could be a work-around until Vim add the path translation functionnality to backupdir. What I did is adding the following line to my .vimrc :
autocmd BufWritePost * :execute ':w! ' ."$HOME/.vim/backups/" . substitute(escape(substitute(expand('%:p'), "/", "%", "g"), "%"), ' ', '\\ ', 'g')
Basically, everytime you save a file, it will also save a copy in $HOME/.vim/backups.