vim实现实时自动保存

进https://www.vim.org/scripts/script.php?script_id=4521网站下载vim -auto-save

wget  https://www.vim.org/scripts/download_script.php?src_id=25644

tar xvf vim-auto-save-0.1.10.tar.gz

cp plugin/AutoSave.vim ~/.vim/plugin/

vim ~/.vimrc

在vimrc中加入下面内容

"自动保存
let g:auto_save = 1
let g:auto_save_events = ["InsertLeave", "TextChanged", "TextChangedI", "CursorHoldI", "CompleteDone"]

猜你喜欢

转载自www.cnblogs.com/awakenedy/p/9722361.html