mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Updane installation cmd for vim-plug
This commit is contained in:
parent
86b23c9a64
commit
66574c5226
@ -66,17 +66,16 @@ function! s:install_manager() abort
|
|||||||
if filereadable(expand('~/.cache/vim-plug/autoload/plug.vim'))
|
if filereadable(expand('~/.cache/vim-plug/autoload/plug.vim'))
|
||||||
let g:spacevim_vim_plug_installed = 1
|
let g:spacevim_vim_plug_installed = 1
|
||||||
else
|
else
|
||||||
if executable('curl')
|
if s:need_cmd('curl')
|
||||||
exec '!curl -fLo '
|
|
||||||
\ . '~/.cache/vim-plug/autoload/plug.vim'
|
call s:VIM_CO.system([
|
||||||
\ . ' --create-dirs '
|
\ 'curl',
|
||||||
\ . 'https://raw.githubusercontent.com/'
|
\ '-fLo',
|
||||||
\ . 'junegunn/vim-plug/master/plug.vim'
|
\ expand('~/.cache/vim-plug/autoload/plug.vim'),
|
||||||
|
\ '--create-dirs',
|
||||||
|
\ 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
\ ])
|
||||||
let g:spacevim_vim_plug_installed = 1
|
let g:spacevim_vim_plug_installed = 1
|
||||||
else
|
|
||||||
echohl WarningMsg
|
|
||||||
echom 'You need install curl!'
|
|
||||||
echohl None
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
exec 'set runtimepath+=~/.cache/vim-plug/'
|
exec 'set runtimepath+=~/.cache/vim-plug/'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user