Api changes at vim-scripts.org
This commit is contained in:
parent
0a0d712416
commit
c7b540fde9
@ -1,19 +1,20 @@
|
|||||||
func! vundle#scripts#search(...)
|
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)
|
call writefile(matches, temp)
|
||||||
exec 'sp '.temp
|
exec 'sp '.temp
|
||||||
let @/=a:1
|
let @/=a:1
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! vundle#scripts#lookup(term)
|
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
|
endf
|
||||||
|
|
||||||
func! vundle#scripts#fetch()
|
func! vundle#scripts#fetch()
|
||||||
let to = g:vundle_scripts_file
|
let to = g:vundle_scripts_file
|
||||||
let temp = tempname()
|
let temp = tempname()
|
||||||
silent exec '!curl http://vim-scripts.org/scripts.json > '.temp
|
exec '!curl http://vim-scripts.org/api/scripts.json > '.temp
|
||||||
silent exec '!mkdir -p $(dirname '.to.') && mv -f '.temp.' '.to
|
exec '!mkdir -p $(dirname '.to.') && mv -f '.temp.' '.to
|
||||||
return to
|
return to
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user