JumpOut: delete and insert char instead of jumping over

Ref: https://github.com/Raimondi/delimitMate/issues/168
This commit is contained in:
Daniel Hahler
2014-02-11 23:55:25 +01:00
parent a1f21e8ef5
commit df1f32f772

View File

@@ -413,7 +413,10 @@ function! delimitMate#JumpOut(char) "{{{
endif
let jump = delimitMate#ShouldJump(a:char)
if jump == 1
return "\<Right>"
" HACK: Instead of <Right>, 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 "\<Del>".a:char
elseif jump == 3
return "\<Right>\<Right>"
elseif jump == 5