From: Simon Ruderich Date: Fri, 30 Oct 2009 22:04:57 +0000 (+0100) Subject: vimrc: Fix detection of matchadd() support. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=74aff9e33024011449e14e562e517f0447460d8a;p=config%2Fdotfiles.git vimrc: Fix detection of matchadd() support. --- diff --git a/vimrc b/vimrc index 42b0eee..98009b8 100644 --- a/vimrc +++ b/vimrc @@ -205,7 +205,7 @@ if has('syntax') endif " Highlight TODO, FIXME, CHANGED and XXX in all documents. - if v:version >= 701 && has('patch40') + if v:version > 701 || (v:version == 701 && has('patch42')) call matchadd('Todo', '\(TODO\|FIXME\|CHANGED\|XXX\)') endif endif