[Vimoutliner] Heading colorization problem with doublebyte characters

apparit at inter7.jp apparit at inter7.jp
Tue Oct 3 10:02:03 EDT 2006


Hello,

I tried vimoutliner-0.3.4 with doublebyte characters (Japanese),
and found a problem when used with doublebyte characters.

Colors used for headings below the top level seem to be wrong 
when the heading has another heading of same level before it
and the first character of the heading is doublebyte one.
For example, 
---
Heading1
    Heading2-1
    Heading2-2
---
In above case, Heading 2-2 is colored like Heading1, if the first character of Heading2-2 is doublebyte.
It makes some confusion when used for outlining.

I checked ${HOME}/syntax/vo_base.vim and found a sentence below:
---
syntax region OL2 start=+^\t[^:\t]+ end=+^\t[^:\t]+me=e-2 
contains=outlTags,BT2,BT3,PT2,PT3,TA2,TA3,UT2,UT3,UB2,UB3,spellErr,
SpellErrors,BadWord,OL3 keepend
---

I temporary modified me=e-2 to me=s-1, and made similar modifications for other levels.
So far this seems to fix the behavior.

I am not familiar with vim programming, but it seems that 
when "[^:\t]" matches first doublebyte character, 
the offset (me=e-2) treats as if this were two characters and marks the region wrongly.
If this is true, me=e-[number] in other positions may also make similar problems.

Please check if this is true or not, 
and I hope this will be fixed in future releases.
My vim version which caused this problem was 7.0 and 6.x 
(I forgot exact version number for 6.x).

Please execuse me for poor English.
Best wishes,


More information about the VimOutliner mailing list