From d64d99e10cfeb62386e5e92620147e7817c01642 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 26 Sep 2011 00:34:24 +0200 Subject: [PATCH] vimrc: Call matchadd() multiple times. Instead of using \( ... \| ... \) in the match. I guess this is faster and it's easier extensible. --- vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index a58741d..d0e67e8 100644 --- a/vimrc +++ b/vimrc @@ -358,9 +358,11 @@ if has('syntax') match Todo /\%>78v./ endif -" Highlight TODO, FIXME, CHANGED and XXX in all documents. if exists('*matchadd') - call matchadd('Todo', '\(TODO\|FIXME\|CHANGED\|XXX\)') +" Highlight TODO, FIXME, CHANGED and XXX in all documents. + for x in ['TODO', 'FIXME', 'CHANGED', 'XXX'] + call matchadd('Todo', x) + endfor endif " Settings for specific filetypes. -- 2.45.2