From 39f06b873a8449af8ff6a3eee716d3da14d63a76 Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Wed, 27 Feb 2019 17:11:39 +0800 Subject: [PATCH] Comptabile with () mapping, fix #245 --- plugin/auto-pairs.vim | 1 + 1 file changed, 1 insertion(+) 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