From: Simon Ruderich Date: Fri, 12 Mar 2010 03:13:29 +0000 (+0100) Subject: vimrc: Only color the first 200 columns per line. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=312f46c288d46273109e5a75e391e920a8fce8b0;p=config%2Fdotfiles.git vimrc: Only color the first 200 columns per line. --- diff --git a/vimrc b/vimrc index 88db35b..acc361f 100644 --- a/vimrc +++ b/vimrc @@ -260,6 +260,11 @@ endif if has('syntax') syntax enable +" Don't highlight more than 200 columns as I normally don't have that long +" lines and they slow down syntax coloring. Thanks to Derek Wyatt +" (http://www.derekwyatt.org/vim/the-vimrc-file/). + set synmaxcol=200 + " Highlight lines longer than 78 characters. Thanks to Tony Mechelynck " from the Vim mailing list. It can easily be " disabled when necessary with :2match (in Vim >= 700).