vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 322d22bef8647a29dac633927a6581ef5dc1cf38
parent 5d0c9d3173b33cb8ef4e99928adfae0a224be9a9
Author: Alex Claman <claman@alexclaman.com>
Date:   Thu, 22 Jun 2023 12:43:03 -0400

Add basic GTD-style token highlighting (#1315)

* Add basic GTD-style token highlighting

* Update vimwiki.txt

* Revert "Update vimwiki.txt" This reverts commit bd7c9cfe68abe12d360b347688acbbca8e856be9.
Diffstat:
Msyntax/vimwiki.vim | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/syntax/vimwiki.vim b/syntax/vimwiki.vim @@ -168,6 +168,12 @@ elseif vimwiki#vars#get_global('hl_cb_checked') == 2 \ .'/ contains=VimwikiNoExistsLink,VimwikiLink,VimwikiWeblink1,VimwikiWikiLink1,@Spell' endif +" GTD-style token highlighting + +syntax match TodoDate '\d\{2,4\}-\d\{2\}-\d\{2\}' contains=VimwikiTodo +syntax match TodoDueDate 'due:\d\{2,4\}-\d\{2\}-\d\{2\}' contains=VimwikiTodo +syntax match TodoProject '\(^\|\W\)+[^[:blank:]]\+' contains=VimwikiTodo +syntax match TodoContext '\(^\|\W\)@[^[:blank:]]\+' contains=VimwikiTodo " Header Level: 1..6 for s:i in range(1,6) @@ -495,6 +501,12 @@ hi def link VimwikiHeaderCharT VimwikiMarkers hi def link VimwikiLinkCharT VimwikiLinkT hi def link VimwikiNoExistsLinkCharT VimwikiNoExistsLinkT +" GTD-style token highlighting + +hi def link TodoDate PreProc +hi def link TodoDueDate VimWikiBold +hi def link TodoProject Constant +hi def link TodoContext Statement " Load syntax-specific functionality call vimwiki#u#reload_regexes_custom()