vim实现实时自动保存


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

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

tar xvf vim-auto-save-0.1.12.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"]


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM