From f002815be0f966c609547e22371277a4c83f77e8 Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 11 Feb 2011 14:35:06 -0600 Subject: [PATCH] Ignore case when searching scripts --- autoload/vundle/scripts.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 5ce8094..a30841c 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -1,5 +1,5 @@ func! vundle#scripts#search(bang,search_str) - let matches = filter(s:load_scripts(a:bang), 'v:val =~ "'.escape(a:search_str,'"').'"') + let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:search_str,'"').'"') let results = map(matches, ' printf("Bundle \"%s\"", v:val) ') call s:display(results, a:search_str) endf @@ -10,7 +10,7 @@ func! s:display(results,search_str) pedit `=s:buff` wincmd P let @/=a:search_str - setlocal hls ft=vim + setlocal hls ignorecase ft=vim redraw! endf