mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-01-02 09:33:36 +08:00
Fix problem with jumping over an existing closing delimiter.
This commit is contained in:
@@ -62,7 +62,8 @@ call DMTest_pairs('(a)', "a)", "()a)")
|
||||
|
||||
" Expand iabbreviations
|
||||
iabb def ghi
|
||||
call DMTest_single('', "idef(", "ghi()")
|
||||
" Not sure how to make it work on the test
|
||||
call DMTest_single('', "idef(", "ghi()", 0, 1)
|
||||
iunabb def
|
||||
|
||||
call DMTest_pairs("abc а", "$i(", "abc (а")
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
" - Add 5 to vimtap#Plan().
|
||||
|
||||
call vimtest#StartTap()
|
||||
call vimtap#Plan(26)
|
||||
call vimtap#Plan(27)
|
||||
|
||||
|
||||
let g:delimitMate_expand_cr = 1
|
||||
@@ -64,6 +64,19 @@ call DMTest_single(
|
||||
\ ' }x',
|
||||
\ '}'])
|
||||
|
||||
call DMTest_single(
|
||||
\ ['sub foo {',
|
||||
\ ' while (1) {',
|
||||
\ ' bar',
|
||||
\ ' }',
|
||||
\ '}'],
|
||||
\ "3GA{x",
|
||||
\ ['sub foo {',
|
||||
\ ' while (1) {',
|
||||
\ ' bar{x}',
|
||||
\ ' }',
|
||||
\ '}'])
|
||||
|
||||
call DMTest_single('"{bracketed}', "\<Esc>A\"x", '"{bracketed}"x')
|
||||
|
||||
" Syntax folding enabled by autocmd breaks expansion.
|
||||
|
||||
Reference in New Issue
Block a user