From df1f32f7729c1535415e87884c60d6010afa1334 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 11 Feb 2014 23:55:25 +0100 Subject: [PATCH] JumpOut: delete and insert char instead of jumping over Ref: https://github.com/Raimondi/delimitMate/issues/168 --- autoload/delimitMate.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 1d1cff7..6548a9f 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -413,7 +413,10 @@ function! delimitMate#JumpOut(char) "{{{ endif let jump = delimitMate#ShouldJump(a:char) if jump == 1 - return "\" + " HACK: Instead of , we remove the char to be jumped over and + " insert it again. This will trigger re-indenting via 'indentkeys'. + " Ref: https://github.com/Raimondi/delimitMate/issues/168 + return "\".a:char elseif jump == 3 return "\\" elseif jump == 5