If you type [<cr> or (<cr>, the expected behavior is:
$arr = array(
|
)
where | is the cursor position. Instead, what happens is:
$arr = array(
|
)
Notice the closing ) is indented one level farther than it should be. The same behavior happens with [ ].
I initially opened 2072/PHP-Indenting-for-VIm#35, but he suggested the problem actually lies with delimitMate not properly triggering the indentexpr when the ) or ] is moved to the next line.
This issue is when using 2072/PHP-Indenting-for-VIm and
delimitMate_expand_cr
option is enabled.If you type
[<cr>
or(<cr>
, the expected behavior is:where
|
is the cursor position. Instead, what happens is:Notice the closing
)
is indented one level farther than it should be. The same behavior happens with[ ]
.I initially opened 2072/PHP-Indenting-for-VIm#35, but he suggested the problem actually lies with delimitMate not properly triggering the
indentexpr
when the)
or]
is moved to the next line.