When I remove the "let &bex ... " line I get a clean backup file in $VIM/backup
When I add the "let &bex.. " line I get the error messages.

So I assume that the backup dir isn't the problem, but the let &bex ..  is
But I don't know why

Thanks for the one-time setting comment


set bdir=$VIM/backup
let &bex = '-' . strftime("%Y%b%d%X") . '~'


[deleted]
[start _vimrc]
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin


" Disclaimer: the following is untested
" -------------------------------------
if ! isdirectory($VIM . '/backup')
        silent! !mkdir $VIM/backup
        if ! isdirectory($VIM . '/backup')
                echoerr "Backup directory does not exist"
                \       "and cannot be created"
        endif
endif

set bdir=$VIM/backup
let &bex = '-' . strftime("%Y%b%d%X") . '~'
[end _vimrc]

'backupext' is here set to the date-time when the vimrc was sourced. If a file is edited and saved several times in a single session, all backups will (IIUC) overwrite one another.

[deleted]

_________________________________________________________________
Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Reply via email to