Fandom

Vim Tips Wiki

Speed up Syntax Highlighting

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

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.

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!
 
   autocmd BufWinEnter,Syntax * syn sync minlines=500 maxlines=500
 
 augroup END

Also on Fandom

Random Wiki