mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-06 09:04:23 +08:00
committed by
Junegunn Choi
parent
3f7344d2cc
commit
b32169ff30
@@ -14,9 +14,15 @@ Execute (Initialize test environment):
|
||||
|
||||
" Temporarily patch plug.vim
|
||||
call system('cp "$PLUG_SRC" "$PLUG_TMP"')
|
||||
call writefile(extend(readfile($PLUG_TMP),
|
||||
let patch =
|
||||
\ ['function! ResetPlug()', 'let s:loaded = {}', 'endfunction',
|
||||
\ 'function! CompareURI(a, b)', 'return s:compare_git_uri(a:a, a:b)', 'endfunction']), $PLUG_TMP)
|
||||
\ 'function! CompareURI(a, b)', 'return s:compare_git_uri(a:a, a:b)', 'endfunction']
|
||||
|
||||
if $ENV != 'vim8'
|
||||
call add(patch, 'let s:vim8 = 0')
|
||||
endif
|
||||
|
||||
call writefile(extend(readfile($PLUG_TMP), patch), $PLUG_TMP)
|
||||
|
||||
set t_Co=256
|
||||
colo default
|
||||
|
||||
Reference in New Issue
Block a user