mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 20:54:31 +08:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user