After running :bufdo e!
All my files lose their filetype setting and I have to manually run :set ft=XXX in each file.
Anyone know how to so
The bufdo command doesn't update syntax hightlighting for performance reasons:
From vim docs:
Note: While this command is executing, the Syntax autocommand event is disabled by adding it to 'eventignore'. This considerably speeds up editing each buffer
You can update the syntax highlighting for affected buffers by re-running:
:syntax on