Skip to content

Instantly share code, notes, and snippets.



Last active Dec 23, 2015
What would you like to do?
vim syntax highlighting for git-done TODO
" Append these to your .vimrc
syntax enable
au BufRead,BufNewFile *.todo setfiletype todo
au BufRead,BufNewFile TODO setfiletype todo
" todo.vim must go in .vim/syntax/
syn match TagLine /^>>>[^$\(##\)]*/
highlight TagLine cterm=bold term=bold ctermfg=Cyan
syn keyword TodoKeywords TODO
highlight TodoKeywords cterm=bold term=bold ctermfg=Yellow
syn keyword FeatureKeywords NEW IMPROVE IMPROVED FEATURE
highlight FeatureKeywords cterm=bold term=bold ctermfg=Blue
syn keyword DoneKeywords DONE
highlight DoneKeywords cterm=bold term=bold ctermfg=LightGreen
syn keyword NodoKeywords NODO
highlight NodoKeywords cterm=bold term=bold ctermfg=DarkGray
syn keyword BugKeyword FIXBUG
highlight BugKeyword cterm=bold term=bold ctermfg=Magenta
syn match DoneChar /\(^+\|^ \++\)/
highlight DoneChar cterm=bold term=bold ctermfg=LightGreen
syn match TodoChar /\(^-\|^ \+-\)/
highlight TodoChar cterm=bold term=bold ctermfg=Yellow
syn match NodoChar /\(^x\|^ \+x\)/
highlight NodoChar cterm=bold term=bold ctermfg=DarkGray
syn match Comments /\#\#.*$/
highlight Comments ctermfg=DarkGray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.