Better handling of nested quotes. Closes #134.

This commit is contained in:
Israel Chauca Fuentes
2013-07-22 20:52:05 -04:00
parent 7345bfddef
commit 543be33b13
3 changed files with 40 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ let g:delimitMate_autoclose = 1
# Handle backspace gracefully.
set backspace=
"'\<Esc>a\<BS>x" "'x'"
set backspace=2
set cpo=ces$
"'x" "'x'"
# Make sure smart quote works beyond first column.
@@ -40,3 +41,10 @@ set cpo=ces$
"}\<Home>'" "''}"
"'\<Del>abc '" "'abc '"
"''abc '" "''abc ''"
# Nesting quotes:
let g:delimitMate_nesting_quotes = split(g:delimitMate_quotes, '\s\+')
"'''x" "'''x'''"
"''''x" "''''x''''"
"''x" "''x"
"'x" "'x'"
unlet g:delimitMate_nesting_quotes