Ignore case when searching scripts

This commit is contained in:
gmarik 2011-02-11 14:35:06 -06:00
parent a9800a0190
commit f002815be0

View File

@ -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