diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 66a0c6c..af5eb32 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -596,6 +596,7 @@ endf func! s:ExpandMap(map) let map = a:map let map = substitute(map, '\(\w\+\)', '\=maparg(submatch(1), "i")', 'g') + let map = substitute(map, '\(([^)]*)\)', '\=maparg(submatch(1), "i")', 'g') return map endf