proteanthread / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

set backupdir does not support double trailing slashes to include path info in filename #179

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add to your vimrc:  set backupdir=~/tmp/vimbackupdir//
2. cd /some/dir
3. vim somefile
4. :w

What is the expected output?
~/tmp/vimbackupdir/ should have a filename with embedded path info so that you 
can edit the same filename in different directories without overwriting. The 
same way that "set directory" handles it for swap files.

What do you see instead?
Files in backupdir have only the filename.

What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 12 2013 08:50:31)
Ubuntu 12.04.2 LTS

Original issue reported on code.google.com by mattm@chromium.org on 13 Nov 2013 at 11:44

GoogleCodeExporter commented 9 years ago
This is already in todo.txt, under *known-bugs*, and a patch was submitted 21 
Oct. 2010. It has a priority of 7, "as soon as possible", but other than that, 
I don't know the status. It would be nice.

Original comment by gary....@gmail.com on 14 Nov 2013 at 1:46

GoogleCodeExporter commented 9 years ago
I can also confirm this bug.

Original comment by thekaleb on 30 Aug 2014 at 8:47