mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 04:34:29 +08:00
JumpOut: delete and insert char instead of jumping over
Ref: https://github.com/Raimondi/delimitMate/issues/168
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user