tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
20.01k stars 1.01k forks source link

E1513: Cannot switch buffer. 'winfixbuf' is enabled when refreshing #2282

Closed mosheavni closed 7 months ago

mosheavni commented 7 months ago

Hi, I saw there were couple of other issues regarding winfixbuf but I really didn't understand where it hits other users, for me, sometimes I want to reload the git window, for example when I delete a committed file from outside of vim, and I usually use :e but now it prompts me the dreaded error:

E1513: Cannot switch buffer. 'winfixbuf' is enabled

Is there any alternative to reloading the fugitive buffer? Thanks.

tpope commented 7 months ago

That's https://github.com/vim/vim/issues/14237. Until it's fixed, you can use :e! instead.