When we use gvim to edit a file, ~ If we do not want to automatically generate a backup file when editing the file, we need to modify its configuration file, but I did not find the corresponding configuration items in the vimrc file, so we found that we should modify it in the vimrc_example.vim file 74 under the vim installation directory. We found the following code at the beginning of its line 24th:
If has ("VMS") set nobackup "do not keep a backup file, use versions insteadelse set backup" Keep a backup fileendif
We only need to annotate the else part. Here, we need to note that the comment here is annotated using double quotation marks, that is, we write it as follows:
If has ("VMS") set nobackup "do not keep a backup file, use versions instead" else "set backup" Keep a backup fileendi
The configuration here is not configured in vimrc, but in vimrc_example.vim of vim74 in the Vim folder.
In addition, Here vim74 is related to my version number. Readers may not have this folder, but it means the same.