]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Only color the first 200 columns per line.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 88db35b817f38a9efd94d96853484b53d14bbf96..acc361f74e54da10b3daf9b41692d963e6761794 100644 (file)
--- 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
 " <antoine.mechelynck@gmail.com> from the Vim mailing list. It can easily be
 " disabled when necessary with :2match (in Vim >= 700).