From 267c1bb661b467c3e663eee4cbde97cffa04b524 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 17 Feb 2009 14:14:30 +0100 Subject: [PATCH] Only use syntax if available. --- vimrc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 -- 2.45.2