From b2237a6a0c085c02fa391ec4238849cef43f1979 Mon Sep 17 00:00:00 2001 From: Alexander Jeurissen Date: Wed, 8 Feb 2017 22:01:31 +0100 Subject: [PATCH] Fix bug in bang behaviour. --- plug.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index aa2716d..d7a4057 100644 --- a/plug.vim +++ b/plug.vim @@ -594,7 +594,12 @@ function! s:update(force, names) endfunction function! s:open(force, name) - exec ':Sexplore'.a:force.' '.g:plug_home.'/'.a:name.'/' + let plugpath = g:plug_home.'/'.a:name.'/' + if a:force + exec ':Sexplore! '. plugpath + else + exec ':Sexplore '. plugpath + endif endfunction function! plug#helptags()