]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Only use syntax if available.
authorSimon Ruderich <simon@ruderich.org>
Tue, 17 Feb 2009 13:14:30 +0000 (14:14 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 17 Feb 2009 13:14:30 +0000 (14:14 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 1f14e5f23944c073c9da799994db26a210b793dc..3d269fa0634e3c84a5ff08547dda922e8503dfbe 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -148,14 +148,16 @@ endif
 " SYNTAX SETTINGS
 
 " Activate syntax coloring.
-syntax enable
+if has("syntax")
+    syntax enable
 
 " Highlight text longer then 78 characters. Thanks to Tony Mechelynck
 " <antoine.mechelynck@gmail.com> from the Vim mailing list.
-if v:version >= 700
-    2match Todo /\%>78v./
-else
-    match Todo /\%>78v./
+    if v:version >= 700
+        2match Todo /\%>78v./
+    else
+        match Todo /\%>78v./
+    endif
 endif