From 48d2e3b9d1b136e4428f09262e454be4480a5235 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Wed, 16 Jun 2010 01:44:11 -0500 Subject: [PATCH] Check for 'backspace' when expansion is enabled. --- autoload/delimitMate.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 6416534..c326ae8 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -86,6 +86,10 @@ function! delimitMate#Init() "{{{ unlet g:delimitMate_expand_cr let b:delimitMate_expand_cr = 1 endif + if &backspace !~ 'eol' || &backspace !~ 'start' + echom "delimitMate: In order to use the expansion, you need to have 'eol' and 'start' in your backspace option. Read :help 'backspace'." + let b:delimitMate_expand_cr = 0 + endif call delimitMate#option_init("expand_cr", 0) " smart_quotes