blueyed / vim-diminactive

Vim plugin to dim inactive windows
339 stars 10 forks source link

Exclude :hi Folded from dimming? #15

Open lkraav opened 9 years ago

lkraav commented 9 years ago

I'd like to leave :hi Folded ctermbg alone in dimmed windows. Possible?

blueyed commented 9 years ago

Yes, that seems to work.

Just use another ctermbg etc for Folded than for ColorColumn.

For me however, using cterm=underline with Folded seems to be enough.

:hi ColorColumn
ColorColumn    xxx ctermbg=7 guibg=LightRed
:hi Folded
Folded         xxx cterm=bold,underline ctermfg=11 ctermbg=7 guifg=DarkBlue
                   guibg=LightGrey
blueyed commented 9 years ago

The default settings seems to be:

:hi Folded
Folded         xxx ctermfg=4 ctermbg=248 guifg=DarkBlue guibg=LightGrey
:hi ColorColumn
ColorColumn    xxx ctermbg=224 guibg=LightRed

(using Neovim)

With Vim it's:

:hi Folded
Folded         xxx term=standout ctermfg=4 ctermbg=248 guifg=DarkBlue
                   guibg=LightGrey
:hi ColorColumn
ColorColumn    xxx term=reverse ctermbg=224 guibg=LightRed

So here maybe the reverse is causing trouble?

What are your settings for Folded and ColorColumn?

lkraav commented 9 years ago
:hi ColorColumn
ColorColumn    xxx term=reverse ctermbg=254 guibg=#d8cad8

:hi Folded
Folded         xxx term=standout ctermfg=11 ctermbg=155 guifg=#9e8f9e guibg=#d8cad8

When I switch window, everything in the inactive window gets ColorColumn ctermbg. I can't figure out a setting that would keep Folded ctermbg=155.

screenshot from 2015-06-01 11-50-29