mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-10-29 06:23:57 +08:00
Comptabile with <CR> <Plug>() mapping, fix #245
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user