Bram Moolenaar <[email protected]> wrote:

> Tony Mechelynck wrote:
>
>> I notice that at the moment, the soft-hyphen (U+00AD) is displayed as
>> a blank character cell. I suggest to add an entry in 'listchars' (e.g.
>> shy:c) to display it as a glyph of the user's choice, so that e.g.
>>
>>       :set lcs=eol:¶,tab:\|_,extends:>,precedes:<,conceal:*,nbsp:·,shy:↔
>>
>> (assuming UTF-8 'encoding') would, in addition to what it already
>> does, display a soft-hyphen as a double-arrow in SpecialKey
>> highlighting. (I suppose that the added code would be similar to what
>> already exists for the no-break space.)
>>
>> A different default (a hyphen in SpecialKey, maybe?) might be felt
>> more useful: Bram (and other coders), what do you think?
>
> Adding an item in 'lcs' sounds like a good idea.
>
> Doing this with a conceal item is more complex, and there are some side
> effects (perhaps desirable though).

Perhaps we can have a more generic approach for any kind of characters
by specifying its code point. For example, to show a regular dash for U+00AD:

 :set lcs=U+00AD:-

Although doing this can become dangerous: if 'lcs' is in a mode line,
it can change any character!

Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui