You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grab previous closest opening fold marker e.g.) {{{N, Check next closest closing fold marker N}}}.
Then parse N to compare both open/closing markers.
If two numbers are different, then cursor is out of folding context. So, create folding marker with number 1; {{{1, 1}}}.
Else, cursor is between of N fold markers. So, increase N+1 to create {{{N+1, N+1}}} fold markers.
The text was updated successfully, but these errors were encountered:
Using UltiSnips's
${VISUAL}
.Grab previous closest opening fold marker
e.g.) {{{N
, Check next closest closing fold markerN}}}
.Then parse
N
to compare both open/closing markers.If two numbers are different, then cursor is out of folding context. So, create folding marker with number
1
;{{{1
,1}}}
.Else, cursor is between of
N
fold markers. So, increaseN+1
to create{{{N+1
,N+1}}}
fold markers.The text was updated successfully, but these errors were encountered: