无论如何,如果源文件发生更改,是否可以让 Gvim 更新编辑缓冲区而不要求确认?我的意思是在每个固定的时间间隔内自动更新编辑缓冲区?
最佳答案
Autoread 将禁止提示:
When a file has been detected to have been changed outside of Vim and it has not been changed inside of Vim, automatically read it again. When the file has been deleted this is not done.
:set autoread
结合 :checktime 强制重新加载。
:checktime
:help :checktime
:help 'autoread'
关于vim - 无需确认即可更新 Gvim 缓冲区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7068833/