Fix #491 - Lazy-loading with omaps
This commit is contained in:
parent
765a2d21d3
commit
44893a1901
1 changed files with 7 additions and 0 deletions
7
plug.vim
7
plug.vim
|
@ -493,6 +493,13 @@ function! s:lod_map(map, names, prefix)
|
|||
endif
|
||||
let extra .= nr2char(c)
|
||||
endwhile
|
||||
if v:count
|
||||
call feedkeys(v:count, 'n')
|
||||
endif
|
||||
if mode(1) == 'no'
|
||||
call feedkeys('"'.v:register, 'n')
|
||||
call feedkeys(v:operator)
|
||||
endif
|
||||
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in a new issue