]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Fix detection of matchadd() support.
authorSimon Ruderich <simon@ruderich.org>
Fri, 30 Oct 2009 22:04:57 +0000 (23:04 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 30 Oct 2009 22:04:57 +0000 (23:04 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 42b0eee715736adb66553f12f8a33b8fbcc76d93..98009b8611eb2885af03a11a4057c57899698ce9 100644 (file)
--- 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