Created
October 20, 2021 14:28
-
-
Save lnksz/7434e531e96c8d3a361f4f7b59de1f5f to your computer and use it in GitHub Desktop.
mini vim syntax for todos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" This goes into ~/.vim/syntax/todo.vim | |
" Auto registration: $MYVIMRC << au BufRead,BufNewFile TODO set filetype=todo | |
if exists("b:current_syntax") | |
finish | |
endif | |
" # Header | |
syn match headLine '\v#.*$' | |
" > doing | |
syn match progLine '^\s*>.*$' | |
" ! attention | |
syn match attnLine '^\s*!.*$' | |
hi def link headLine Constant | |
hi def link progLine Comment | |
hi def link attnLine Statement | |
let b:current_syntax = "todo" |
Author
lnksz
commented
Oct 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment