这个问题已经在这里有了答案:
- 将vim用作日志查看器的技巧[关闭] 5个答案
当我在vim中打开文件(在本例中为日志文件)时,我想触发刷新并将所有文件更改加载到我现有的vim会话中。
我经常在日志文件上使用tail -f,但是当我使用java和tomcat时,日志消息对于tail来说太多了。
有vim命令重新加载打开的文件吗?
2
太多的尾巴?即使作为vim用户,我也看不到vim如何改善这种情况……
—
akira
太多的尾巴,因为行数是不可预测的,所以我不确定尾巴-fn 200是否足够
—
mcgyver5 2011年