Skip to main content
Notice removed Draw attention by Arch Stanton
Bounty Ended with Rich's answer chosen by Arch Stanton
added 178 characters in body
Source Link

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.

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 do that?

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.

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. 

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.

added 27 characters in body
Source Link
Tumbler41
  • 7.8k
  • 1
  • 21
  • 48

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 do that?

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.

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 do that?

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.

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 do that?

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.

added 189 characters in body
Source Link

I'd like vim to keep the backup of a file until that file is closed, instead of overwriting itthe backup every time the file is saved. How can I do that?

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.

I'd like vim to keep the backup of a file until that file is closed, instead of overwriting it every time the file is saved. How can I do that?

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 do that?

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.

Notice added Draw attention by Arch Stanton
Bounty Started worth 50 reputation by Arch Stanton
added 16 characters in body
Source Link
Loading
edited tags
Link
Loading
Source Link
Loading