Original link: https://blog.kelu.org/tech/2023/08/17/how-to-stop-gvim-from-generating-backup-files-in-windows.html
Because the local environment will automatically synchronize files, it is very troublesome to synchronize a series of files such as ~ generated by vim every time. Can be turned off like this:
set nobackup # 关闭~ 文件set noundofile # 关闭un~ 文件set noswapfile # 关闭swap 文件
This article is transferred from: https://blog.kelu.org/tech/2023/08/17/how-to-stop-gvim-from-generating-backup-files-in-windows.html
This site is only for collection, and the copyright belongs to the original author.