mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 02:25:35 -07:00
Fix #491 - Lazy-loading with omaps
This commit is contained in:
parent
765a2d21d3
commit
44893a1901
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 New Issue
Block a user