Open
Description
I have defined following rule for latex:
let g:cycle_default_groups_for_tex = [
\ [['(:)', '\left(:\right)', '\mleft(:\mright)', '\bigl(:\bigr)', '\Bigl(:\Bigr)', '\biggl(:\biggr)', '\Biggl(:\Biggr)'], 'sub_pairs', 'hard_case', 'match_case'],
\ ]
However, it does not work as expected in all circumstances. Consider this
(a+b)
Cursor on (
. If I now cycle to the next item in the group, I get what I want:
\left(a+b\right)
However, the cursor remains on (
and cycling now to the next item leads to following result
\left\left(a+b\right\right)
The option g:cycle_auto_visual
helps, but does not work correctly if I place the cursor on the closing delimiter:
Any suggestions to make this group work are helpful.
Metadata
Metadata
Assignees
Labels
No labels