From 8fd974b091f0cee3170ee6fdf5e779c6a5d1c462 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 11 Nov 2013 10:23:12 +0900 Subject: [PATCH] Fix source code error on `vim -u MYVIMRC` --- plug.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plug.vim b/plug.vim index dfdbf3c..cbca27d 100644 --- a/plug.vim +++ b/plug.vim @@ -51,6 +51,9 @@ if exists('g:loaded_plug') endif 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_file = 'Plugfile' let s:plug_win = 0 @@ -634,3 +637,6 @@ function! s:status() call setline(1, 'Finished. '.errs.' error(s).') endfunction +let &cpo = s:cpo_save +unlet s:cpo_save +