From b2fcd39a0b4a2c519c57b1c58dee5fa9c5e56033 Mon Sep 17 00:00:00 2001 From: Ben Edwards Date: Thu, 12 Mar 2015 07:25:53 +0000 Subject: [PATCH] refactor: Unite support without touching internals g:unite_source_grep_search_word_highlight takes a highlight group as an argument, so create our own highlight group and assign it, rather than override the internal highlight group name directly. --- colors/gotham.vim | 3 ++- colors/gotham256.vim | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/colors/gotham.vim b/colors/gotham.vim index 37cf7cc..c0b43ff 100644 --- a/colors/gotham.vim +++ b/colors/gotham.vim @@ -228,7 +228,8 @@ call s:Col('CtrlPPrtText', 'cyan') " text in the prompt call s:Col('CtrlPPtrCursor', 'base7') " cursor in the prompt " unite.vim -call s:Col('uniteSource__GrepPattern', 'base7', 'green') +call s:Col('UniteGrep', 'base7', 'green') +let g:unite_source_grep_search_word_highlight = 'UniteGrep' " Cleanup ===================================================================== diff --git a/colors/gotham256.vim b/colors/gotham256.vim index f2cf040..e47e254 100644 --- a/colors/gotham256.vim +++ b/colors/gotham256.vim @@ -227,6 +227,9 @@ call s:Col('CtrlPPrtBase', 'base4') " '>>>' prompt call s:Col('CtrlPPrtText', 'cyan') " text in the prompt call s:Col('CtrlPPtrCursor', 'base7') " cursor in the prompt +" unite.vim +call s:Col('UniteGrep', 'base7', 'green') +let g:unite_source_grep_search_word_highlight = 'UniteGrep' " Cleanup =====================================================================