Quellcode durchsuchen

Don't need <Plug> map (#38)

Junegunn Choi vor 11 Jahren
Ursprung
Commit
aa49c38586
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      plug.vim

+ 1 - 3
plug.vim

@@ -463,12 +463,10 @@ function! s:do(pull, todo)
           " FIXME: Escaping is incomplete. We could use shellescape with eval,
           " FIXME: Escaping is incomplete. We could use shellescape with eval,
           "        but it won't work on Windows.
           "        but it won't work on Windows.
           let g:_plug_do = '!'.escape(spec.do, '#!%')
           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
         finally
           let result = v:shell_error ? ('Exit status: '.v:shell_error) : 'Done!'
           let result = v:shell_error ? ('Exit status: '.v:shell_error) : 'Done!'
           unlet g:_plug_do
           unlet g:_plug_do
-          unmap <Plug>(plug-do)
         endtry
         endtry
       elseif type == s:TYPE.funcref
       elseif type == s:TYPE.funcref
         try
         try