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