title: Why does Pathogen "magically" solve Vim syntax highlighting problems?
body: <p>I have these 3 lines in my <code>.vimrc</code>.</p>
  
  <pre><code>" keeping pathogen only for its 'syntax on' bug workaround
  Bundle "tpope/vim-pathogen"
  execute pathogen#infect()
  </code></pre>
  
  <p>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.</p>
  
  <p>On MacOS, <code>Go</code> syntax highlighting isn't working, while on Arch Linux is. But on Arch, <code>coffeescript</code> isn't highlighted. For some reason, executing <code>pathogen#infect()</code> solves all problems on both platforms.</p>
  
  <p>Its kind of like black magic to me, so I'm wondering why is that. Is there any better way to fix this problem?</p>
  
  <p><strong>Answer:</strong>
  I have looked into my vimrc, and found the error. I had this line </p>
  
  <pre><code>filetype plugin indent on
  </code></pre>
  
  <p><code>before</code> the Bundle's, where it should have been <code>after</code> the Bundles.</p>