Use regex for smart_matchpairs.

If the text in the line to the right of the cursor matches
smart_matchpairs, do not auto close.

To match the opening paren, insert a escaped bang (\!) in the pattern.
This commit is contained in:
Israel Chauca Fuentes
2010-11-17 17:53:33 -06:00
parent f7b53f045d
commit 86f70a7d9c
2 changed files with 7 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ function! s:init() "{{{
call s:option_init("expand_cr", 0)
" smart_matchpairs
call s:option_init("smart_matchpairs", 1)
call s:option_init("smart_matchpairs", '^\%(\w\|\!\)')
" smart_quotes
call s:option_init("smart_quotes", 1)