From c7b540fde99636ed980ae5611fbe4d23aa448592 Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 18 Nov 2010 17:13:55 -0600 Subject: [PATCH] Api changes at vim-scripts.org --- 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 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