From: Simon Ruderich Date: Tue, 17 Feb 2009 13:14:30 +0000 (+0100) Subject: Only use syntax if available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=267c1bb661b467c3e663eee4cbde97cffa04b524;p=config%2Fdotfiles.git Only use syntax if available. --- diff --git a/vimrc b/vimrc index 1f14e5f..3d269fa 100644 --- 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 " 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