John Little wrote:
> This is the script I use presently:
> ...
> augroup StampBackup
>     au! BufWritePost,FileWritePost * call StampBackup()
> augroup END

Thank you, really a stretch for me.

I do not really understand, but can hack until working.
Came up with the following which seems to work for me.

Can the minutes adjust be made simpler?

"new backup timestamp every 10 minutes
augroup StampBackup
  au! BufWritePre * let &backupext = '-' . strftime("%Y%m%d_%H")
    \ . printf("%02d",str2nr(strftime("%M"))/10*10) . '~'
augroup END

This is the result:

vim-timestamp.txt-20100206_1240~

-Bill

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

Reply via email to