mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
- Match Conceal, ComplMatchIns, MsgArea, Terminal, and User[1-9] highlight groups. - Generate the vimGroup syntax group from runtime/syncolor.vim. - Match :SynColor and :SynLink as special user commands. fixes #17467 closes: #17556 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
109 lines
1.9 KiB
VimL
109 lines
1.9 KiB
VimL
" Vim :highlight command
|
|
" VIM_TEST_SETUP hi link vimHiGroup Todo
|
|
|
|
|
|
" list
|
|
|
|
highlight
|
|
highlight Comment
|
|
highlight Conceal
|
|
highlight ErrorMsg
|
|
highlight Foo
|
|
|
|
|
|
" reset
|
|
|
|
highlight clear
|
|
|
|
|
|
" disable
|
|
|
|
highlight clear Comment
|
|
highlight clear Conceal
|
|
highlight clear ErrorMsg
|
|
highlight clear Foo
|
|
|
|
highlight Comment NONE
|
|
highlight Conceal NONE
|
|
highlight ErrorMsg NONE
|
|
highlight Foo NONE
|
|
|
|
|
|
" add/modify
|
|
|
|
highlight Comment cterm=underline
|
|
highlight Conceal cterm=underline
|
|
highlight ErrorMsg cterm=underline
|
|
highlight Foo cterm=underline
|
|
|
|
highlight default Comment term=bold
|
|
highlight default Conceal term=bold
|
|
highlight default ErrorMsg term=bold
|
|
highlight Foo ErrorMsg term=bold
|
|
|
|
|
|
" link
|
|
|
|
highlight link Foo Comment
|
|
highlight! link Foo Comment
|
|
highlight link Foo NONE
|
|
highlight! link Foo NONE
|
|
highlight link Foo ErrorMsg
|
|
highlight! link Foo ErrorMsg
|
|
|
|
|
|
" default link
|
|
|
|
highlight default link Foo Comment
|
|
highlight! default link Foo Comment
|
|
highlight default link Foo NONE
|
|
highlight! default link Foo NONE
|
|
highlight default link Foo ErrorMsg
|
|
highlight! default link Foo ErrorMsg
|
|
|
|
|
|
" line continuation and command separator
|
|
|
|
hi Comment
|
|
"\ comment
|
|
\ term=bold
|
|
"\ comment
|
|
\ ctermfg=Cyan
|
|
\ guifg=#80a0ff
|
|
\ gui=bold
|
|
|
|
hi Comment
|
|
\ term=bold
|
|
\ ctermfg=Cyan
|
|
\ guifg=#80a0ff
|
|
\ gui=bold | echo "Foo"
|
|
|
|
hi Comment term=bold ctermfg=Cyan guifg=#80a0ff gui=bold | echo "Foo"
|
|
|
|
hi default link
|
|
\ Foo
|
|
\ Comment
|
|
|
|
hi default link
|
|
\ Foo
|
|
\ Comment | echo "Foo"
|
|
|
|
|
|
" 'statusline' user groups
|
|
|
|
highlight User1 ctermfg=black
|
|
highlight User2 ctermfg=darkblue
|
|
highlight User3 ctermfg=darkgreen
|
|
highlight User4 ctermfg=darkcyan
|
|
highlight User5 ctermfg=darkred
|
|
highlight User6 ctermfg=darkmagenta
|
|
highlight User7 ctermfg=darkyellow
|
|
highlight User8 ctermfg=lightgray
|
|
highlight User9 ctermfg=darkgray
|
|
|
|
|
|
" :terminal group
|
|
|
|
hi Terminal ctermbg=red ctermfg=blue
|
|
|