Hi Tony!
On Mi, 03 Mai 2017, 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?
Is this really necessary? You can now use concealing to show arbitrary
code points differently.
:call matchadd('Conceal', '\%uad', 10, -1, {'conceal': '↔'})
:set conceallevel=2 concealcursor=nv
okay, this does not work in small builds, but I still somewhat doubt
that this is a needed addition.
Best,
Christian
--
Im Kleinen ist man nicht allein.
-- Johann Wolfgang von Goethe (Faust I)
--
--
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.