From d9fe8b1fcf436f78ee4eefa86d695b3749c62e61 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Tue, 10 Jul 2012 15:14:26 +0300 Subject: [PATCH] Setting foreground colors with respect to background --- autoload/indent_guides.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index c8471cb..cad7c92 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -102,8 +102,8 @@ function! indent_guides#basic_highlight_colors() let l:cterm_colors = (&g:background == 'dark') ? ['darkgrey', 'black'] : ['lightgrey', 'white'] let l:gui_colors = (&g:background == 'dark') ? ['grey15', 'grey30'] : ['grey70', 'grey85'] - exe 'hi IndentGuidesEven guibg=' . l:gui_colors[0] . ' ctermbg=' . l:cterm_colors[0] - exe 'hi IndentGuidesOdd guibg=' . l:gui_colors[1] . ' ctermbg=' . l:cterm_colors[1] + exe 'hi IndentGuidesEven guibg=' . l:gui_colors[0] . ' guifg=' . l:gui_colors[1] . ' ctermbg=' . l:cterm_colors[0] . ' ctermfg=' . l:cterm_colors[1] + exe 'hi IndentGuidesOdd guibg=' . l:gui_colors[1] . ' guifg=' . l:gui_colors[0] . ' ctermbg=' . l:cterm_colors[1] . ' ctermfg=' . l:cterm_colors[0] endfunction " @@ -134,8 +134,8 @@ function! indent_guides#gui_highlight_colors() let l:hi_even_bg = indent_guides#lighten_or_darken_color(l:hi_odd_bg) " define the new highlights - exe 'hi IndentGuidesOdd guibg=' . l:hi_odd_bg - exe 'hi IndentGuidesEven guibg=' . l:hi_even_bg + exe 'hi IndentGuidesOdd guibg=' . l:hi_odd_bg . ' guifg=' . l:hi_even_bg + exe 'hi IndentGuidesEven guibg=' . l:hi_even_bg . ' guifg=' . l:hi_odd_bg end endfunction