Skip to content

Instantly share code, notes, and snippets.

@kbenzie
Created November 27, 2014 19:04
Show Gist options
  • Save kbenzie/e108ccf375aa63d69d12 to your computer and use it in GitHub Desktop.
Save kbenzie/e108ccf375aa63d69d12 to your computer and use it in GitHub Desktop.
NOTE highlighting in vim for C/C++
"" 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