From cb08d6036b7be9ed6e7fe87cf4c128944f17923a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 23 Sep 2014 15:24:27 +0900 Subject: [PATCH] Reload plugins after everything's ready --- plug.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plug.vim b/plug.vim index 9b3382d..fc1b90f 100644 --- a/plug.vim +++ b/plug.vim @@ -128,7 +128,6 @@ function! s:source(from, ...) endfunction function! plug#end() - let reload = !has('vim_starting') if !exists('g:plugs') return s:err('Call plug#begin() first') endif @@ -189,12 +188,12 @@ function! plug#end() augroup END endfor - if reload - call s:reload() - endif call s:reorg_rtp() filetype plugin indent on syntax enable + if !has('vim_starting') + call s:reload() + endif endfunction function! s:loaded_names()