From a306de8c622aa030b9da609032414bc215d1c38c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 20 Apr 2016 17:20:40 -0400 Subject: Highlight important tasks Important tasks start with a `!` instead of a `-`. Highlight them separately from normal tasks so that they can be visually distinguished. Here we use the Error highlight group for them because it's red (at least in my colour scheme). --- syntax/todo.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/todo.vim b/syntax/todo.vim index 140b0dd..8179393 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -3,7 +3,9 @@ if exists('b:current_syntax') endif syntax match todoUndone /^\s*- .\+/ +syntax match todoImportant /^\s*!.\+/ highlight link todoUndone Statement +highlight link todoImportant Error let b:current_syntax = 'todo' -- cgit v1.2.3