mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 20:54:31 +08:00
Do not remove caracters when inserting a closing paren. Close #133.
This commit is contained in:
@@ -74,7 +74,7 @@ function! delimitMate#ShouldJump(...) "{{{
|
|||||||
if index(list, nchar) > -1
|
if index(list, nchar) > -1
|
||||||
return 2
|
return 2
|
||||||
endif
|
endif
|
||||||
elseif a:0 && s:g('expand_space') && nchar == a:1
|
elseif a:0 && s:g('expand_space') && nchar == a:1 && char == ' '
|
||||||
return 3
|
return 3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -736,4 +736,4 @@ function! delimitMate#OptionsList() "{{{
|
|||||||
endfunction " delimitMate#OptionsList }}}
|
endfunction " delimitMate#OptionsList }}}
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" vim:foldmethod=marker:foldcolumn=4
|
" vim:foldmethod=marker:foldcolumn=4:ts=2:sw=2
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ let g:delimitMate_autoclose = 1
|
|||||||
# Handle backspace gracefully.
|
# Handle backspace gracefully.
|
||||||
set backspace=
|
set backspace=
|
||||||
"(\<Esc>a\<BS>x" "(x)"
|
"(\<Esc>a\<BS>x" "(x)"
|
||||||
|
# closing parens removes characters. #133
|
||||||
|
"(a\<Esc>i)" "()a)"
|
||||||
|
|
||||||
# Add semicolon next to the closing paren. Issue #77.
|
# Add semicolon next to the closing paren. Issue #77.
|
||||||
new
|
new
|
||||||
|
|||||||
Reference in New Issue
Block a user