I tend to have lots of vim buffers open.
Is there a way to tell vim: when I execute this git command (which switches branches), reload all buffers? Since I have hooks into all my vim-git interaction, letting vim know when to do the reload is not a problem. The question is: how to force vim to reload all buffers?
You can try setting the autoread
option on.
:set autoread
From the vim help:
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.