Fix <Plug>-based ODL on visual range spanning multiple lines

This commit is contained in:
Junegunn Choi 2014-07-07 22:55:44 +09:00
parent f1c5157e35
commit 90c07f269c

View file

@ -144,7 +144,7 @@ function! plug#end()
for [mode, map_prefix, key_prefix] in for [mode, map_prefix, key_prefix] in
\ [['i', "<C-O>", ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] \ [['i', "<C-O>", ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']]
execute printf( execute printf(
\ "%snoremap <silent> %s %s:call <SID>lod_map(%s, %s, '%s')<CR>", \ "%snoremap <silent> %s %s:<C-U>call <SID>lod_map(%s, %s, '%s')<CR>",
\ mode, cmd, map_prefix, string(cmd), string(plug), key_prefix) \ mode, cmd, map_prefix, string(cmd), string(plug), key_prefix)
endfor endfor
endif endif