How to save fgcolor SpecialKey when: set list

I config _vimrc :

hi CursorLine   guibg=#DDDDDD

hi SpecialKey   guifg=#d8a080   gui=italic

set listchars=tab:»\ ,trail:·,extends:»,precedes:«,eol:¶

set CursorLine

set list

When I move the cursor, fgcolor of the current line of SpecialKeys becomes BLACK !

How can I save them # d8a080 and italics ?

Many thanks!

+5
source share
1 answer

Maybe your _vimrc is not broken. I tested below.

# cat > foo.vim
hi CursorLine   guibg=#DDDDDD
hi SpecialKey   guifg=#d8a080   gui=italic
hi Constant   guifg=#d8a080   gui=italic
set listchars=tab:»\ ,trail:·,extends:»,precedes:«,eol:¶
set cursorline
set list
^D

# vim foo.vim

I could see that the cursor line is filled using lightgray, and "#DDDDD" (constant) is italic. And I did it below to show SpecifalKey.

:map
v  <C-X>         "*d
...

I could see what <C-X>is italics.

0
source

All Articles