vim可以监视文件的实时更改

前端之家收集整理的这篇文章主要介绍了vim可以监视文件的实时更改前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的问题类似于这个 how to monitor a text file in realtime
但我想在vim中这样做。我知道我可以读一个打开的文件使用tail -f sample.xml文件,当新内容写入文件时,它也会将新内容写入我的屏幕。当文件更新时,我可以让vim自动填充新数据吗?
您可以:设置自动读取,以便vim在文件更改时读取文件。然而(根据你的平台),你必须给它的焦点。

从帮助:

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.

猜你在找的Bash相关文章