Friday, January 6, 2017

Re: Vim highligh not working properly with different colorschemes

Hi Philip,

2017-1-7(Sat) 12:58:20 UTC+9 Philip Stefanov:
> Hello all,
> I have following config in .vimrc
>
> " Show trailing whitespace and spaces before a tab
> highlight ExtraWhitespace ctermbg=red
> match ExtraWhitespace /\s\+$\| \+\ze\t/
>
> colorscheme desert
>
> This is working fine with default and evening colorscheme
> but not with desert with is my favorite :)
> How can i fix it ?

To be on the safe side, It is better to reset the attribute of `cterm` by specifying `NONE`.

highlight ExtraWhitespace ctermbg=red cterm=NONE

See the following help.
:h highlight-cterm
:h attr-list

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment