在vim中从磁盘刷新缓冲区中的所有文件 [英] Refresh all files in buffer from disk in vim
本文介绍了在vim中从磁盘刷新缓冲区中的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从磁盘版本刷新文件的命令是:e!
我该怎么做缓冲区中的所有文件都一样吗?
背景:我需要这样做,因为我在一个包含缓冲区的vim打开的情况下使用了多个分支的git。当我检出一个分支时,我想要刷新vim。 阅读 bufdo的文档
,它应该做你想做的。
The command to refresh a file from version on disk is :e!
How can I do the same for all files in the buffer?
Background: I need that because I am using git with multiple branches with one vim open that contains a buffer. When I checkout a branch, I would like to have vim refresh.
解决方案
Read the documentation for bufdo
, it should do what you want.
这篇关于在vim中从磁盘刷新缓冲区中的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文