mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 12:36:53 -07:00
parent
561518fd8c
commit
f4381fb748
15
plug.vim
15
plug.vim
@ -508,14 +508,17 @@ function! s:lod_map(map, names, prefix)
|
||||
endif
|
||||
let extra .= nr2char(c)
|
||||
endwhile
|
||||
if v:count
|
||||
call feedkeys(v:count, 'n')
|
||||
endif
|
||||
call feedkeys('"'.v:register, 'n')
|
||||
|
||||
let prefix = v:count ? v:count : ''
|
||||
let prefix .= '"'.v:register.a:prefix
|
||||
if mode(1) == 'no'
|
||||
call feedkeys(v:operator)
|
||||
if v:operator == 'c'
|
||||
let prefix = "\<esc>" . prefix
|
||||
endif
|
||||
let prefix .= v:operator
|
||||
endif
|
||||
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
||||
call feedkeys(prefix, 'n')
|
||||
call feedkeys(substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
||||
endfunction
|
||||
|
||||
function! plug#(repo, ...)
|
||||
|
Loading…
Reference in New Issue
Block a user