Xin Xing and you disable vim's automatic backup function
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.