[Vimoutliner] Heading colorization problem with doublebyte
characters
Stefan Schmiedl
s at xss.de
Wed Oct 4 11:31:45 EDT 2006
apparit at inter7.jp (03.10. 23:02):
> Hello,
>
> I tried vimoutliner-0.3.4 with doublebyte characters (Japanese),
> and found a problem when used with doublebyte characters.
>
> I checked ${HOME}/syntax/vo_base.vim and found a sentence below:
> ---
> syntax region OL2 start=+^\t[^:\t]+ end=+^\t[^:\t]+me=e-2
> ---
>
> 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.
And as far as I understand the vim docs, it is the correct fix.
me=e-2 counts from the end of the match, while s-1 backs up from
the starting point of the match, i.e. the start of the line.
So even if you're ending up in the "middle" of the two-byte linebreak,
the region obviously ends before it.
I'd say you did a very good job nailing this thing down.
> Please execuse me for poor English.
What poor English?
s.
More information about the VimOutliner
mailing list