From 1cbbe90a09e6ae0731a9ad2c6181e6689984b365 Mon Sep 17 00:00:00 2001 From: Akos Gyimesi Date: Thu, 23 Feb 2012 21:35:40 +0100 Subject: [PATCH] Allow CR expansion for arbitrary line suffix. --- autoload/delimitMate.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 9a9b92b..d0d2779 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -405,10 +405,9 @@ function! delimitMate#ExpandReturn() "{{{ if delimitMate#WithinEmptyPair() " Expand: call delimitMate#FlushBuffer() - let char = delimitMate#GetCharFromCursor(0) - "return "\a\x\\k$\"_xa" - "return "\a\\\o" - call feedkeys("\a\\ox\\".char."\kA", 't') + + let b:delimitMate_lineSuffix = getline('.')[col('.')-1:] + call feedkeys("\l\"_Do \\\=b:delimitMate_lineSuffix\\k$i\", 't') return '' else return "\"