Using the backup
option, I'd like vim to keep the backup of a file until that file is closed, instead of overwriting the backup every time the file is saved. How can
I want Vim to do that? because I often find myself wishing that I could see a file as it was at the beginning of the editing session (for files that I don't want to keep under version control).
NB: the backup should become a copy of the file as the file was when I last saved it before closing. That is, if I edit a file and quit without saving, the backup should not be written.