Merge pull request #169 from blueyed/hack-jumpout-del-and-reinsert

JumpOut: delete and insert char instead of jumping over.
This commit is contained in:
Israel Chauca Fuentes
2014-02-19 20:40:27 -05:00

View File

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