I have these 3 lines in my .vimrc
.
" keeping pathogen only for its 'syntax on' bug workaround
Bundle "tpope/vim-pathogen"
execute pathogen#infect()
I must have removed and re-added these 3 lines about a dozen of times now. I'm on latest version of Vim, and yet, for some reasons, some syntax highlighting isn't working correctly.
On MacOS, Go
syntax highlighting isn't working, while on Arch Linux is. But on Arch, coffeescript
isn't highlighted. For some reason, executing pathogen#infect()
solves all problems on both platforms.
Its kind of like black magic to me, so I'm wondering why is that. Is there any better way to fix this problem?
Answer: I have looked into my vimrc, and found the error. I had this line
filetype plugin indent on
before
the Bundle's, where it should have been after
the Bundles.