mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-08 18:04:46 +08:00
Fix source code error on vim -u MYVIMRC
This commit is contained in:
6
plug.vim
6
plug.vim
@@ -51,6 +51,9 @@ if exists('g:loaded_plug')
|
|||||||
endif
|
endif
|
||||||
let g:loaded_plug = 1
|
let g:loaded_plug = 1
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
let s:plug_source = 'https://raw.github.com/junegunn/vim-plug/master/plug.vim'
|
let s:plug_source = 'https://raw.github.com/junegunn/vim-plug/master/plug.vim'
|
||||||
let s:plug_file = 'Plugfile'
|
let s:plug_file = 'Plugfile'
|
||||||
let s:plug_win = 0
|
let s:plug_win = 0
|
||||||
@@ -634,3 +637,6 @@ function! s:status()
|
|||||||
call setline(1, 'Finished. '.errs.' error(s).')
|
call setline(1, 'Finished. '.errs.' error(s).')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user