Wikia

Vim Tips Wiki

Speed up Syntax Highlighting

1,623pages on
this wiki
Talk0

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

Around Wikia's network

Random Wiki