Comptabile with <CR> <Plug>() mapping, fix #245

This commit is contained in:
Miao Jiang 2019-02-27 17:11:39 +08:00
parent 65a9f452f2
commit 39f06b873a

View File

@ -596,6 +596,7 @@ endf
func! s:ExpandMap(map)
let map = a:map
let map = substitute(map, '\(<Plug>\w\+\)', '\=maparg(submatch(1), "i")', 'g')
let map = substitute(map, '\(<Plug>([^)]*)\)', '\=maparg(submatch(1), "i")', 'g')
return map
endf