Matěj Cepl wrote:
> On 2017-02-17, 10:14 GMT, Matěj Cepl wrote:
>> would it be possible to do something about display of the soft
>> hyphen character (U+00AD)? I tried to use it in my rST file,
>> but ended up with a blank space. So I filed a bug against the
>> font I use (https://github.com/tonsky/FiraCode/issues/365),
>> but maintainer of the font (unfortunately correctly, IMO)
>> closed it as NOTABUG.
>>
>> I think adding new item 'shy' to the possible keys of listchars
>> variable should be a good solution, what do you think?
>
> And, BTW, Emacs (emacs-25.1-3.fc25.x86_64) using the same font
> does The Right Thing™ displaying the hyphen character in
> different color.
>
> Matěj
It's already possible.
See :help 'listchars' and the section about nbsp there.
You need a Vim version recent enough, but nbsp has
been added a long time ago.
My .virmrc contains this:
if has('multi_byte')
scriptencoding utf-8
set enc=utf-8
set fileencodings=ucs-bom,utf-8,latin1
set lcs=tab:»·,trail:·,eol:¬,extends:>,precedes:<,nbsp:␣
endif
Regards
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.