开发者

Update Gvim buffer without asking for confirmation

Is there anyway to make Gvim update the edit buffer wi开发者_运维百科thout asking for confirmation if the source file changes ? I mean update the edit buffer automatically in every fixed time interval ?


Autoread will suppress the prompt:

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

In conjunction with :checktime to force a reload.

:checktime

:help :checktime
:help 'autoread'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜