parent
561518fd8c
commit
f4381fb748
1 changed files with 9 additions and 6 deletions
15
plug.vim
15
plug.vim
|
@ -508,14 +508,17 @@ function! s:lod_map(map, names, prefix)
|
||||||
endif
|
endif
|
||||||
let extra .= nr2char(c)
|
let extra .= nr2char(c)
|
||||||
endwhile
|
endwhile
|
||||||
if v:count
|
|
||||||
call feedkeys(v:count, 'n')
|
let prefix = v:count ? v:count : ''
|
||||||
endif
|
let prefix .= '"'.v:register.a:prefix
|
||||||
call feedkeys('"'.v:register, 'n')
|
|
||||||
if mode(1) == 'no'
|
if mode(1) == 'no'
|
||||||
call feedkeys(v:operator)
|
if v:operator == 'c'
|
||||||
|
let prefix = "\<esc>" . prefix
|
||||||
endif
|
endif
|
||||||
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
let prefix .= v:operator
|
||||||
|
endif
|
||||||
|
call feedkeys(prefix, 'n')
|
||||||
|
call feedkeys(substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! plug#(repo, ...)
|
function! plug#(repo, ...)
|
||||||
|
|
Loading…
Reference in a new issue