Vim Tips Wiki

Speed up Syntax Highlighting

1,625pages on
this wiki
Add New Page
Talk0 Share

The defaults for syncing in some syntaxes for vim can be very slow, especially for large files and slow machines.

Add the following to your ~/.vimrc to fix this:

 augroup vimrc
   autocmd BufWinEnter,Syntax * syn sync minlines=500 maxlines=500
 augroup END

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.