mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 20:54:31 +08:00
Fix conflict with cindent. Comment on #95.
This commit is contained in:
@@ -354,8 +354,7 @@ function! delimitMate#JumpOut(char) "{{{
|
|||||||
return ' '.a:char.delimitMate#Del().delimitMate#Del()
|
return ' '.a:char.delimitMate#Del().delimitMate#Del()
|
||||||
elseif jump == 5
|
elseif jump == 5
|
||||||
call delimitMate#FlushBuffer()
|
call delimitMate#FlushBuffer()
|
||||||
return "\<CR>" . matchstr(getline(line('.') + 1), '^\s*\S')
|
return "\<C-O>:exec \"normal! \\<CR>a\"\<CR>"
|
||||||
\ . delimitMate#Del() . "\<Del>"
|
|
||||||
else
|
else
|
||||||
return a:char
|
return a:char
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -30,3 +30,15 @@ exec "normal i( \<CR>\<BS>\<BS>x"
|
|||||||
================================================================================
|
================================================================================
|
||||||
(x)
|
(x)
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
# Conflict with indentation settings (cindent). Issue #95
|
||||||
|
se cindent
|
||||||
|
call setline(1, ['sub foo {',' while (1) {', ' ', ' }', '}'])
|
||||||
|
call cursor(3, 8)
|
||||||
|
normal a}x
|
||||||
|
================================================================================
|
||||||
|
sub foo {
|
||||||
|
while (1) {
|
||||||
|
|
||||||
|
}x
|
||||||
|
}
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user