I'm using console vim within a tmux window, therefore occasionally vim doesn't recognize that files have been modified (gvim does it on a focus change AFAIK) and in order to avoid getting inconsistent buffers, I manually ask vim to reload them all using
:bufdo :e
However, after this syntax highlighting is lost in all the buffers. Typing :e
in a buffer then restores it again. This seems strange, as I'd suppose that :e
behaves the same when given directly and when inside :bufdo
. Is there a way how to get around that, to have syntax highlighted buffers after :bufdo :e
?