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
It seems like the 'backupdir'
option doesn't support the translation of the full absolute path into a filename (using %
for path separators) like 'directory'
and 'undodir'
do. At least nothing is mentioned under :help 'backupdir'
.
Since this is inconsistent, and I see your use case, you should submit a request at the vim_dev mailing list. Actually, there is already such a patch in the (veeery long) patch queue (:help todo.txt
):
7 The 'directory' option supports changing path separators to "%" to make
file names unique, also support this for 'backupdir'. (Mikolaj Machowski)
Patch by Christian Brabandt, 2010 Oct 21.
Please kindly lobby on the vim_dev mailing list to have its priority raised!