From becf71b5adb16403f263e2144d24a760c72a7b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Mon, 28 Mar 2011 22:00:52 +0200 Subject: [PATCH] Update default syntax highlighting --- plugin/EasyMotion.vim | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index c52303f..251d954 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -30,10 +30,26 @@ endif " }}} " Create default highlighting {{{ if ! hlexists(g:EasyMotion_target_hl) " {{{ - execute 'hi ' . g:EasyMotion_target_hl . ' ctermfg=red ctermbg=none cterm=bold gui=bold guibg=Red guifg=yellow' + let hl = 'guibg=none guifg=#ff0000 gui=bold ' + + if &t_Co == 256 + let hl .= 'ctermbg=none ctermfg=196 cterm=bold ' + else + let hl .= 'ctermbg=none ctermfg=red cterm=bold ' + endif + + execute 'hi ' . g:EasyMotion_target_hl . ' ' . hl endif " }}} if ! hlexists(g:EasyMotion_shade_hl) " {{{ - execute 'hi ' . g:EasyMotion_shade_hl . ' ctermfg=black ctermbg=none cterm=bold gui=bold guibg=none guifg=black' + let hl = 'guibg=none guifg=#585858 gui=none ' + + if &t_Co == 256 + let hl .= 'ctermbg=none ctermfg=240 cterm=none ' + else + let hl .= 'ctermbg=none ctermfg=darkgrey cterm=none ' + endif + + execute 'hi ' . g:EasyMotion_shade_hl . ' ' . hl endif " }}} " }}} " }}}