Why VIM backup filenames are not correct? 'backupdir' option not performing as expected -
I am creating a custom vimrc to improve my workflow, and set me a centralized directory to keep everyone Like backing up, swaping, and rearranging files together, like:
"=== Backup settings ===" Set up back up set up backupdir = ~ / .vim / backup // "== = swap files ===" set swap file set directory => / swap files on /vim / swap // "=== UNFO FI === "Turn the undoFile on the undifil set to set the undodir = ~ / .vim / undo //
The double trailing slash is considered as a file name extension, whose As a result, the backup / swap / undo filename will be the absolute path, in which %
will be replaced by each location, /
, something like % home% username% path% to% Your% file.ext
.
Everything works perfectly for swap and undo files, but the backups do not work, the complete path to the file names is file.ext ~ < / Code>, which means that when I edit two files in the same way
Does anyone have any clue about this problem?
It looks like the Since this is incompatible, and I see your use case, you should submit a request to it. In fact, this kind of patches (Hardy) patch queue ( Please Please lobby take your preference! 'backupdir'
option is complete in a file name Path does not support translation (for %
path separator) such as 'directory'
and 'undodir'
do at least some Also, : Help is not mentioned under 'Backup DIR'.
: Help todo.txt
):
7 'Directory' option supports changing paths to make separators file names by name "%" unique, 'Backup Dare '(Mikolz Mourowski) Christian Brabad by Patches, 2010 Oct December 21.
Comments
Post a Comment