Last active
December 23, 2015 06:39
-
-
Save staltz/6595113 to your computer and use it in GitHub Desktop.
vim syntax highlighting for git-done TODO
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
" Append these to your .vimrc | |
syntax enable | |
au BufRead,BufNewFile *.todo setfiletype todo | |
au BufRead,BufNewFile TODO setfiletype todo |
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
" 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