Ignore case when searching scripts
This commit is contained in:
parent
a9800a0190
commit
f002815be0
@ -1,5 +1,5 @@
|
|||||||
func! vundle#scripts#search(bang,search_str)
|
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) ')
|
let results = map(matches, ' printf("Bundle \"%s\"", v:val) ')
|
||||||
call s:display(results, a:search_str)
|
call s:display(results, a:search_str)
|
||||||
endf
|
endf
|
||||||
@ -10,7 +10,7 @@ func! s:display(results,search_str)
|
|||||||
pedit `=s:buff`
|
pedit `=s:buff`
|
||||||
wincmd P
|
wincmd P
|
||||||
let @/=a:search_str
|
let @/=a:search_str
|
||||||
setlocal hls ft=vim
|
setlocal hls ignorecase ft=vim
|
||||||
redraw!
|
redraw!
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user