mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-01-25 12:26:55 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user