Add string next to the closing matchpair when at the eol. Closes #77.

This commit is contained in:
Israel Chauca Fuentes
2012-04-14 19:35:59 -04:00
parent a42dff4ad8
commit b65d719353
5 changed files with 58 additions and 18 deletions

View File

@@ -24,3 +24,11 @@ let g:delimitMate_autoclose = 1
# Handle backspace gracefully.
set backspace=
"(\<Esc>a\<BS>x" "(x)"
# Add semicolon next to the closing paren. Issue #77.
new
let b:delimitMate_eol_marker = ';'
"abc(x" "abc(x);"
%d
# BS should behave accordingly.
"abc(\<BS>" "abc"

View File

@@ -42,3 +42,9 @@ sub foo {
}x
}
--------------------------------------------------------------------------------
%d
call setline(1, "\"{bracketed}")
normal A"x
================================================================================
"{bracketed}"x
--------------------------------------------------------------------------------