取消gVim自动生成备份文件~文件
在gVim安装目录下找到vimrc_example.vim文件,我的是E:\工具\Vim\vim80
,找到其中的语句:
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set backup " keep a backup file (restore to previous version)
if has('persistent_undo')
set undofile " keep an undo file (undo changes after closing)
endif
endi
注释掉,如下:
if has("vms")
set nobackup " do not keep a backup file, use versions instead
" else
" set backup " keep a backup file (restore to previous version)
" if has('persistent_undo')
" set undofile " keep an undo file (undo changes after closing)
" endif
endi
重新打开gVim将不会生成备份文件