title: Why is my vim slow when editing PHP files?
body: <p>if I edit php file, Vim gets so slow... when I scroll text in normal mode or if I write in insert mode.</p>
  
  <p>However my files aren't nothing special: until 90 characters per line, about 150 lines per file.  </p>
  
  <p>But Vim is slow only if I edit <strong>php</strong> file. When editing javascript with up to 700 lines and all plugins enabled, Vim runs fine (ps: for javascript I use much more performance demanding plugins).</p>
  
  <p>In php files I do not get lags after I disable syntax highlighting (syntax off).<br>
  However, what's interesting <strong>Vim also runs fast with syntax highlighting enabled when I run Vim with flag:</strong></p>
  
  <blockquote>
    <p>--noplugin</p>
  </blockquote>
  
  <p>With that known, I tried delete all my custom installed plugins and run Vim without --noplugin flag. - Unfortunately, vim still lagging when editing php files.</p>
  
  <p>One important fact: It does not matter what kind of syntax highlighting I use. For all colorschemes behavior is same as described above.</p>
  
  <p>I tried setting up these options (without change):</p>
  
  <pre><code>set nocursorcolumn
  set nocursorline
  syntax sync minlines=256
  </code></pre>
  
  <p>So, question is, what can I do for having vim which run without lags while editing php files?<br>
  I use Windows.</p>