Api changes at vim-scripts.org
This commit is contained in:
parent
0a0d712416
commit
c7b540fde9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user