Fix PlugUpgrade
This commit is contained in:
parent
fe264c97a1
commit
9e9655f947
1 changed files with 2 additions and 2 deletions
4
plug.vim
4
plug.vim
|
@ -47,7 +47,7 @@ if exists('g:loaded_plug')
|
||||||
endif
|
endif
|
||||||
let g:loaded_plug = 1
|
let g:loaded_plug = 1
|
||||||
|
|
||||||
let s:plug_source = 'https://raw.github.com/junegunn/vim-plug/master/vim-plug.vim'
|
let s:plug_source = 'https://raw.github.com/junegunn/vim-plug/master/plug.vim'
|
||||||
let s:plug_win = 0
|
let s:plug_win = 0
|
||||||
let s:is_win = has('win32') || has('win64')
|
let s:is_win = has('win32') || has('win64')
|
||||||
let s:me = expand('<sfile>:p')
|
let s:me = expand('<sfile>:p')
|
||||||
|
@ -347,7 +347,7 @@ function! s:upgrade()
|
||||||
\ new, s:plug_source, mee, mee, new, mee))
|
\ new, s:plug_source, mee, mee, new, mee))
|
||||||
if v:shell_error == 0
|
if v:shell_error == 0
|
||||||
unlet g:loaded_plug
|
unlet g:loaded_plug
|
||||||
execute "source ". s:me
|
echo "Now reload vim-plug with: source ". s:me
|
||||||
else
|
else
|
||||||
echoerr "Error upgrading vim-plug"
|
echoerr "Error upgrading vim-plug"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue