From 08caedc2b764aa74a4c67ba59f1de9049a544cf8 Mon Sep 17 00:00:00 2001 From: gmarik Date: Mon, 1 Aug 2011 21:57:12 -0500 Subject: [PATCH] do not `set hls` global when searching - otherwise may conflict with user preferences - closes #68 --- autoload/vundle/scripts.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 55554ce..0108b61 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -7,9 +7,10 @@ func! vundle#scripts#all(bang, ...) else let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"') call s:display(info + ['"Search results for: '.a:1], matches) - let @/=a:1 - " TODO: highlight doesn't work - setl hls + if &hls + " TODO: search doesn't get highlighted for me + let @/=a:1 + endif let b:match = a:1 endif redraw! @@ -36,7 +37,7 @@ func! vundle#scripts#install() abort endf func! vundle#scripts#setup_view() abort - setl hls ro noma ignorecase syntax=vim + setl ro noma ignorecase syntax=vim syn keyword vimCommand Bundle