From 44893a1901c29e68faadc66f69ddbe0eaff9f65c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 31 May 2016 12:44:48 +0900 Subject: [PATCH] Fix #491 - Lazy-loading with omaps --- plug.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plug.vim b/plug.vim index d916ff0..a666677 100644 --- a/plug.vim +++ b/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, '^', "\", '') . extra) endfunction