From d0fc1456b7ff424311be65bb17e697dcb87ebe18 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Wed, 17 Nov 2010 23:17:25 -0600 Subject: [PATCH] Use \# to insert closing pair in smart_matchpairs. --- autoload/delimitMate.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 4c5d192..268af67 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -261,6 +261,7 @@ function! delimitMate#ParenDelim(char) " {{{ let col = col('.')-2 let left = b:_l_delimitMate_left_delims[index(b:_l_delimitMate_right_delims,a:char)] let smart_matchpairs = substitute(b:_l_delimitMate_smart_matchpairs, '\\!', left, 'g') + let smart_matchpairs = substitute(smart_matchpairs, '\\#', a:char, 'g') "echom left.':'.smart_matchpairs . ':' . matchstr(line[col+1], smart_matchpairs) if b:_l_delimitMate_smart_matchpairs != '' && \ line[col+1:] =~ smart_matchpairs