Attempt to fix CR expansion.

This commit is contained in:
Israel Chauca Fuentes
2012-02-08 01:08:10 -05:00
parent c889905e47
commit 98b4119746

View File

@@ -396,8 +396,11 @@ function! delimitMate#ExpandReturn() "{{{
if delimitMate#WithinEmptyPair()
" Expand:
call delimitMate#FlushBuffer()
let char = delimitMate#GetCharUnderCursor()
"return "\<Esc>a\<CR>x\<CR>\<Esc>k$\"_xa"
return "\<Esc>a\<CR>\<UP>\<Esc>o"
"return "\<Esc>a\<CR>\<UP>\<Esc>o"
call feedkeys("\<Esc>a\<Del>\<Esc>ox\<BS>\<CR>".char."\<Esc>kA", 't')
return ''
else
return "\<CR>"
endif