title: Vim slow with ruby syntax highlighting
body: <p>I've been using vim over ssh to work for a week or two now and all has been going great. Today I decided to add in some syntax highlighting, autocomplete, and some other general plugins. Set up vundle and went to work. </p>
  
  <p><del> My current .vimrc can be found at <a href="https://github.com/scottopell/dotfiles/blob/master/.vimrc" rel="noreferrer">https://github.com/scottopell/dotfiles/blob/master/.vimrc</a> </del></p>
  
  <p>I have cloned my vimrc and vim files onto my local ubuntu desktop and vim runs exactly as expected, no slowness on any files that I can find. Same plugins and same vimrc and no slowness on ruby files.  </p>
  
  <p><strong>update</strong> </p>
  
  <p>I can reproduce this issue with the following .vimrc</p>
  
  <pre><code>syntax on
  </code></pre>
  
  <p>and an empty <code>~/.vim</code> folder.</p>
  
  <p>However, vim on this vps is very slow with ruby/haml files. Much moreso ruby files. When I open any ruby file, startup takes about 2 seconds (timed with --startuptime). With a comparable length haml file, its about .5 seconds.  This slowness isn't just on startup either, moving around and editing the file are both painfully slow.</p>
  
  <p>Haml/erb(they are basically the same)</p>
  
  <pre><code>268.818  000.005: before starting main loop
  848.871  580.053: first screen update
  </code></pre>
  
  <p>Ruby</p>
  
  <pre><code>199.613  000.004: before starting main loop
  2937.859  2738.246: first screen update
  </code></pre>
  
  <p>Without syntax highlighting on the same ruby file as above</p>
  
  <pre><code>149.047  000.004: before starting main loop
  152.912  003.865: first screen update 
  </code></pre>
  
  <p><del> I have tried using mosh(<a href="http://mosh.mit.edu" rel="noreferrer">http://mosh.mit.edu</a>) and it doesn't help.</del> not really relevant anymore</p>
  
  <p>As you can see in my .vimrc file, I have tried a few different solutions to this problem.
  I have tried running with all plugins disabled (I moved them all from <code>~/vim/bundle/PLUGINNAME</code> to <code>~/vim/bundle/disabled/PLUGINNAME</code>, is this correct?), set ruby path, set foldlevel to manual, disabled my colorscheme, nothing helps.  <strong>see edit3</strong></p>
  
  <p>I can post the full startupttime log for any file if that will help.<br>
  I have tested a few other languages(php, c, python, vimL) and none experience any slowdown.</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> Just to clarify, I am running an ssh session with ssh user@server then once inside the server I am doing vim file.rb.</p>
  
  <p><strong>EDIT2:</strong> I just tried accessing the server directly and the slowness persists without ssh, I have updated to reflect that this isn't a problem with ssh.</p>
  
  <p><strong>EDIT3:</strong> I can reproduce the issue with a .vimrc file that contains the single line <code>syntax on</code> with an empty ~/.vim folder</p>
  
  <p><strong>EDIT4</strong>  I uninstalled my compiled version of vim and any versions that I may have installed through apt, manually removed all vim stuff from my system, and I can run vim with <code>vim -u NONE /path/to/file.rb</code> then do :syn on and the issue will be there. The file in question is a rails controller, but like I've said, I can recreate it to some degree with most any file, but rails controllers see to be the worst.</p>