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.
--
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
Thursday, August 2, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment