vim-indent-guides icon indicating copy to clipboard operation
vim-indent-guides copied to clipboard

highlight colors not recognized with solarized

Open jc00ke opened this issue 13 years ago • 3 comments

I use @altercation's solarized (dark) for my theme, and I can't get the highlights to be dark when background is set before colorscheme.

set background=dark
colorscheme solarized

yields

solarized light

where

colorscheme solarized
set background=dark

yields

solarized dark

I've tried setting

hi IndentGuidesEven ctermbg=black
hi IndentGuidesOdd ctermbg=darkgrey

but that doesn't work at all. You can see the relevant lines to my .vimrc here

jc00ke avatar Sep 01 '11 06:09 jc00ke

What OS and version of Vim are you using?

As a temporary work-around, try adding the following to your .vimrc:

let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  ctermbg=black
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=darkgrey

nathanaelkane avatar Sep 01 '11 06:09 nathanaelkane

7.3.35 on Ubuntu 11.04

Your temporary workaround worked.

jc00ke avatar Sep 01 '11 06:09 jc00ke

let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  ctermbg=darkgrey
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=lightgrey

This works for solarized light theme

vunhan avatar May 13 '18 22:05 vunhan