在vim的安装目录下找到:文件vimrc_example.vim 在文件最后位置添加: set noundofile set nobackup set noswapfile 如:
其中 set nobackup " do not keep a backup file, use versions instead set undofile " keep an undo file (undo changes after closing) set noswapfile " do not swap file
禁止vim生成un~文件:在vim的安装目录下找到:文件vimrc_example.vim在文件最后位置添加:set noundofileset nobackupset noswapfile如:其中set nobackup " do not keep a backup file, use versions insteadset undofile " keep an undo file (undo changes after closing)set noswapfile " do n