Hi,
Eric Leenman wrote:
> I've tried it but then I get the message :
> Error E510 'Can't backup file (add! to override)
>
>
>
> I have a clean gvim70.exe downloaded today.
> I've added two lines to my _vimrc, see below for the complete file.
> Do I need to do something with backup and write backup?
>
> [start _vimrc]
> set nocompatible
> source $VIMRUNTIME/vimrc_example.vim
> source $VIMRUNTIME/mswin.vim
> behave mswin
>
> set bdir=$VIM/backup
> let &bex = '-' . strftime("%Y%b%d%X") . '~'
> [end _vimrc]
"%X" as part of the strftime parameter generates a time stamp like
"14:51:23", but colons are invalid in Windows file names. Better use
something like this:
let &bex = '-' . strftime("%Y%m%d%H%M%S") . '~'
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)