From 10b809d187584bbf16c4f400e74003032b9a1ac5 Mon Sep 17 00:00:00 2001 From: Will Gray Date: Thu, 17 Feb 2011 15:13:14 -0600 Subject: [PATCH 1/2] Don't clobber pre-set custom colors. --- autoload/indent_guides.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index 2ac36d2..4340d52 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -152,8 +152,8 @@ endfunction " Define default highlights. " function! indent_guides#define_default_highlights() - exe 'hi IndentGuidesOdd guibg=NONE ctermbg=NONE' - exe 'hi IndentGuidesEven guibg=NONE ctermbg=NONE' + exe 'hi default clear IndentGuidesOdd' + exe 'hi default clear IndentGuidesEven' endfunction " From fa67d46acab60b55c44094a9dc5fdc0059a69fc9 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Mon, 21 Feb 2011 23:29:30 +1000 Subject: [PATCH 2/2] Removed unnecessary exe calls for default highlights --- autoload/indent_guides.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index 4340d52..e863d2d 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -152,8 +152,8 @@ endfunction " Define default highlights. " function! indent_guides#define_default_highlights() - exe 'hi default clear IndentGuidesOdd' - exe 'hi default clear IndentGuidesEven' + hi default clear IndentGuidesOdd + hi default clear IndentGuidesEven endfunction "