Refresh all files in buffer from disk in vim

前端 未结 5 1699
予麋鹿
予麋鹿 2021-01-29 19:18

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 u

5条回答
  •  有刺的猬
    2021-01-29 19:45

    As @Matthew S Mentioned here https://vi.stackexchange.com/a/462, you can use:

    :set noconfirm
    :bufdo !e
    :set confirm
    

提交回复
热议问题