Use DOS commands on Windows
This commit is contained in:
parent
f1bac10257
commit
3854318432
@ -40,8 +40,14 @@ endf
|
||||
|
||||
func! s:fetch_scripts(to)
|
||||
let temp = tempname()
|
||||
if has('win32') || has('win64')
|
||||
let d = fnamemodify(expand(a:to), ":h")
|
||||
exec '!curl http://vim-scripts.org/api/scripts.json > '.temp.
|
||||
\ '&& mkdir '.d.' && move /Y '.temp.' '.a:to
|
||||
else
|
||||
exec '!curl http://vim-scripts.org/api/scripts.json > '.temp.
|
||||
\ '&& mkdir -p $(dirname '.a:to.') && mv -f '.temp.' '.a:to
|
||||
endif
|
||||
endf
|
||||
|
||||
func! s:load_scripts(bang)
|
||||
|
Loading…
Reference in New Issue
Block a user