From aa49c38586ce0ce2aff936e8e1b6d83c21094d69 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 27 Jul 2014 03:16:44 +0900 Subject: [PATCH] Don't need map (#38) --- plug.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plug.vim b/plug.vim index cddf43a..64c61b3 100644 --- a/plug.vim +++ b/plug.vim @@ -463,12 +463,10 @@ function! s:do(pull, todo) " FIXME: Escaping is incomplete. We could use shellescape with eval, " but it won't work on Windows. let g:_plug_do = '!'.escape(spec.do, '#!%') - nnoremap (plug-do) :execute g:_plug_do - execute "normal \(plug-do)" + execute "normal! :execute g:_plug_do\\" finally let result = v:shell_error ? ('Exit status: '.v:shell_error) : 'Done!' unlet g:_plug_do - unmap (plug-do) endtry elseif type == s:TYPE.funcref try