Skip to content

Instantly share code, notes, and snippets.

@lnksz
Created October 20, 2021 14:28
mini vim syntax for todos
" 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"
@lnksz
Copy link
Author

lnksz commented Oct 20, 2021

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment