On Aug 7, 1:15 am, Alan <[email protected]> wrote: > I looked at patchmode before, but it doesn't do what I want. patchmode only > keeps the oldest version of the file. So it will save the backup after the > first write. However, if you kill the buffer and then visit the file again, > a new backup file will not be made. > > I want a new backup file only when I first open up a file in a buffer and > save it the first time. But after I close the buffer and reopen it again > later, I want it to write another backup. >
Ah, I missed that part. Since it almost does it, how about using it with a BufRead autocmd which sets a flag (like b:needs_backup), coupled with a BufWritePre autocmd which deletes the backup file if b:needs_backup is set? -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
