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]
For now I've used gvim63.exe
There I used tip 892 (http://www.vim.org/tips/tip.php?tip_id=892)
But this doesn't work anymore in 6.4 and 7.0
I'm trying to get this backup options functional in 7.0 again, but until now
unsuccesfull.
Is it possible to set backupext dynamicly?
for example the current time?
Yes, ':help backupext' contains exacly such example:
:au BufWritePre * let &bex = '-' . strftime("%Y%b%d%X") . '~'
-> :help backupext
_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with
Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline