fetch and replace in single run

This commit is contained in:
gmarik 2011-03-19 13:40:47 -05:00
parent b85b45b80f
commit 749ec129da

View File

@ -29,8 +29,8 @@ endf
func! s:fetch_scripts(to) func! s:fetch_scripts(to)
let temp = tempname() let temp = tempname()
exec '!curl http://vim-scripts.org/api/scripts.json > '.temp exec '!curl http://vim-scripts.org/api/scripts.json > '.temp.
exec '!mkdir -p $(dirname '.a:to.') && mv -f '.temp.' '.a:to \ '&& mkdir -p $(dirname '.a:to.') && mv -f '.temp.' '.a:to
endf endf
func! s:load_scripts(bang) func! s:load_scripts(bang)