On 04/05/09 20:20, Dominique Pellé wrote:
>
> Ricky wrote:
>
>> Hi again
>>
>> I found out the reason now.
>>
>> The margin column high-light become confuse when double-byte characters.
>> See attach.
>> But it's not a problem, nobody use double-byte write programs.
>>
>> If i "set mc=??", margin column will disappear when crate a new tab.
>
>
> I observe the same odd highlighting behavior when using ":set cuc"
> with characters that occupy 2 display cells.
>
> See http://dominique.pelle.free.fr/pic/set-cuc.png
>
> (the margincolumn is highlighted in red, the cuc is highlighted in grey)
>
> Now how should margincolumn or cursorcolumn be highlighted
> anyway with characters that occupy 2 display cells?
>
> I'm using Vim-7.2.166 (Linux x86) with margincolumn patch.
>
> -- Dominique
I haven't applied the patch (yet) but my vimrc includes ":set cuc cul".
I see the following:
- exactly one character cell of a hard tab is highlighted when the
highlighted column goes through its span.
- in other cases, i.e.,
- wide CJK characters
- ^X symbols for non-'isprint' ASCII (usually hex 00-08, 0B-1F, and 7F)
- <xx> hex symbols for non-'isprint' characters on the range 80 to FF
(often 80-9F) when 'encoding' is "utf-8" or equivalent
- <xxxx> hex symbols for zero-width or undisplayable Unicode above U+00FF
the whole character or symbol is highlighted if its first character cell
is in the cursor column, otherwise the highlight skips that line.
This doesn't bother me much since most of my text is made of printable
narrow characters, and the few files of mine which contain wide
characters tend to have them vertically aligned. The 'cursorcolumn'
highlight extends the whole height of the current split-window, and if
it happens to miss a line because of hitting the second or further
character cell of a character or character symbol on that line, it's
still obvious where the column happens to be.. But I can imagine that it
might be more of a problem for text using mixed wide and narrow
characters (such as CJK text interspersed with numbers in "Western"
digits or with URLs in ASCII) where "odd" and "even" parts of wide
characters might alternate more or less at random in a single screen column.
Best regards,
Tony.
--
"Those who do not do politics will be done in by politics."
-- French Proverb
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---