mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 10:35:38 -07:00
Don't need <Plug> map (#38)
This commit is contained in:
parent
b6b10ac17e
commit
aa49c38586
4
plug.vim
4
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>(plug-do) :execute g:_plug_do<cr><cr>
|
||||
execute "normal \<Plug>(plug-do)"
|
||||
execute "normal! :execute g:_plug_do\<cr>\<cr>"
|
||||
finally
|
||||
let result = v:shell_error ? ('Exit status: '.v:shell_error) : 'Done!'
|
||||
unlet g:_plug_do
|
||||
unmap <Plug>(plug-do)
|
||||
endtry
|
||||
elseif type == s:TYPE.funcref
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user