I frequently open whole sets of file at once from inside MacVim. To do this, I typically use the commands:
args *PATTERN*
argdo tabedit
This loads all files in the working directory that match the pattern into the argument list, and then opens them all in separate tabs. Syntax highlighting is not automatically turned on when I do this and I have to set it manually. How can I fix this?
I had already posted a workaround for
:bufdoin a similar question; here is an extended version that handles your use case, too. Working around the automatic setting of'eventignore'is quite tricky, therefore it’s amply commented: