gpt4 book ai didi

vim - 无需确认即可更新 Gvim 缓冲区

转载 作者:行者123 更新时间:2023-12-04 18:41:44 25 4
gpt4 key购买 nike

无论如何,如果源文件发生更改,是否可以让 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com