mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 13:14:35 +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()
|
||||
elseif jump == 5
|
||||
call delimitMate#FlushBuffer()
|
||||
return "\<CR>" . matchstr(getline(line('.') + 1), '^\s*\S')
|
||||
\ . delimitMate#Del() . "\<Del>"
|
||||
return "\<C-O>:exec \"normal! \\<CR>a\"\<CR>"
|
||||
else
|
||||
return a:char
|
||||
endif
|
||||
|
||||
@@ -30,3 +30,15 @@ exec "normal i( \<CR>\<BS>\<BS>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