Created
November 27, 2014 19:04
-
-
Save kbenzie/e108ccf375aa63d69d12 to your computer and use it in GitHub Desktop.
NOTE highlighting in vim for C/C++
This file contains hidden or 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
"" Add NOTE comment highlighting to C/C++ files | |
" Place this file in ~/.vim/after/c.vim | |
" This syntax matchesku the word NOTE | |
syn keyword cNote contained NOTE | |
" This add the cNote syntax keyword to the cCommentGroup cluster, so it only | |
" shows up in comments | |
syn cluster cCommentGroup contains=cTodo,cNote,cBadContinuation | |
" This links the syntax matcher to the highlight group Note | |
hi def link cNote Note | |
" This set the Note group highlight color | |
hi Note ctermfg=107 ctermbg=16 cterm=bold guifg=#87af5f guibg=#000000 gui=bold |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment