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

标签 vim buffer logging

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

相关文章:

concurrency - 转到 : buffered channel sum is faster?

c# - 带流的文件 I/O - 最佳内存缓冲区大小

logging - 不要在开发模式下记录 Rails 3.1 中的资源请求

java - 设置内部类的日志级别(在 Glassfish 中)

vim - vim 中的 "set ic"命令导致模式不匹配

c++ - 搜索日志文件

vim:使用 :bn 在缓冲区之间切换时保留光标位置

python - 在非标准路径配置中编译具有静态链接 python 支持的 vim

java - 配置 log4j 以使用 mongodb

java - 当 Scanner.nextLong() 从 try block 中抛出 InputMismatchException 时,Scanner.next() 如何在 catch block 中获得相同的值?