Silence some noise related to 'backspace'.

This commit is contained in:
Israel Chauca Fuentes
2010-07-30 23:51:20 -05:00
parent e831d89acf
commit c9c1464075

View File

@@ -85,7 +85,9 @@ function! delimitMate#Init() "{{{
unlet g:delimitMate_expand_cr
let g:delimitMate_expand_cr = 1
endif
if &backspace !~ 'eol' || &backspace !~ 'start'
if (&backspace !~ 'eol' || &backspace !~ 'start') &&
\ ((exists('b:delimitMate_expand_cr') && b:delimitMate_expand_cr == 1) ||
\ (exists('g:delimitMate_expand_cr') && g:delimitMate_expand_cr == 1))
echom "delimitMate: In order to use the <CR> expansion, you need to have 'eol' and 'start' in your backspace option. Read :help 'backspace'."
let b:delimitMate_expand_cr = 0
endif