>-----Original Message----- >From: [email protected] [mailto:[email protected]] On Behalf Of >Ben Fritz >Sent: Thursday, August 02, 2012 4:19 PM >To: [email protected] >Subject: Re: Syntax - New Key Word with New Color > >On Thursday, August 2, 2012 3:59:01 PM UTC-5, Bill Waters wrote: >> I want the word "NOTE" when in a comment in a C file to show up with a >> LightRed forground and a Black background. >> >> >> >> I added cNote to my own version of c.vim... >> >> >> >> syn keyword cNote contained NOTE >> >> syn cluster cCommentGroup contains=cTodo,cNote >> >> ... >> >> hi def link cNote Cursor >> >> >> >> And this works, but "NOTE" has a Green forground and a Black background. >> >> >> >> I think that I need to add this. But where? >> >> >> >> SynColor Note_Color term=standout cterm=NONE ctermfg=Black >> ctermbg=LightRed gui=NONE guifg=Blue guibg=Yellow >> >> >> >> And then make this change to c.vim... >> >> >> >> hi def link cNote Note_Color >> >> >> >> Thanks, >> >> Bill > >The command is not "SynColor", but rather "hi". You could put it in your >colorscheme. Better yet, just pick a different group to link it to by default >than Cursor. See :help group-name for a list of recommended names to link to. >Probably you want the "Todo" group name.
Thanks Ben. That is where I was getting confused - with groups and such. So, I can follow your direction and end up with the word "TODO" highlighted one way (fg-Yellow, bg-Black) and the word "NOTE" highlighted another (fg-LightRed, bg-Black)? Bill -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
