Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使vim在失去焦点时仅自动保存当前缓冲区,而不是此处描述的所有文件http://vim.wikia.com/wiki/Auto_save_files_when_focus_is_lost
而不是:wa(写所有),使用:w.
:wa
:w
你也可以试试这个
set updatetime=1000 autocmd CursorHoldI * silent w
把它放在你的 .vimrc 中