Do not remove caracters when inserting a closing paren. Close #133.

This commit is contained in:
Israel Chauca Fuentes
2013-07-09 14:10:28 -04:00
parent 8d133d4726
commit 7ce61655a7
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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