On Feb 7, 10:44 am, "Benjamin R. Haskell" <[email protected]> wrote:

> I like the way the 'directory' option with a value ending in // handles
> that:

I didn't know about that.  Shame the 'backupdir' option doesn't have
the same stuff.  Good also to read the help about 'directory',  mine
was set to /tmp, not a good idea.

> instead of:>     let bup = globpath(&backupdir, expand('%:t') . &bex)
>
> how about:
>      let bup = globpath(&backupdir, substitute(expand(%:p),'/','%','g').&bex)

Yes, if I'm working where there's lots of files with the same name
I'll be giving it a try, thank you.

Regards, John

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to