Instead of using \( ... \| ... \) in the match. I guess this is faster
and it's easier extensible.
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.