vim-indent-guides
vim-indent-guides copied to clipboard
highlight colors not recognized with solarized
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
where
colorscheme solarized
set background=dark
yields
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
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
7.3.35 on Ubuntu 11.04
Your temporary workaround worked.
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