diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 1ff94c5..eb05378 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -1,19 +1,20 @@ func! vundle#scripts#search(...) - let matches = map(vundle#scripts#lookup(a:1), ' printf("Bundle \"%-5s\"", v:val[1]) ') | let temp = tempname() + let matches = map(vundle#scripts#lookup(a:1), ' printf("Bundle \"%-5s\"", v:val) ') + let temp = tempname() call writefile(matches, temp) exec 'sp '.temp let @/=a:1 endf func! vundle#scripts#lookup(term) - return filter(items(vundle#scripts#load()), 'v:val[1] =~ "'.escape(a:term,'"').'"') + return filter(vundle#scripts#load(), 'v:val =~ "'.escape(a:term,'"').'"') endf func! vundle#scripts#fetch() let to = g:vundle_scripts_file let temp = tempname() - silent exec '!curl http://vim-scripts.org/scripts.json > '.temp - silent exec '!mkdir -p $(dirname '.to.') && mv -f '.temp.' '.to + exec '!curl http://vim-scripts.org/api/scripts.json > '.temp + exec '!mkdir -p $(dirname '.to.') && mv -f '.temp.' '.to return to endf