Something must have gone wrong.

After adding that custom syntax script, the string '<!-- Щ&М -->'
present in register x, register /, and as the whole contents of the
cursor line, is shown as <↔↔↔> instead. After removing the syntax
script, it is (spontaneously) displayed normally again. Apart from
comments, I had written that html.vim syntax file as (IIRC)

if &enc =~? '^u' && has('conceal') && exists('*matchadd')
      call matchadd('Conceal', "\%uad", 10, -1, {'conceal': '↔'})
      set conceallevel=2 concealcursor=nvic
endif

I didn't try to move the cursor away from that line but I noticed that
actual soft-hyphens some lines down did not appear as ↔

Next trime I try (if I do) I'll use :setlocal rather than :set but
apart from that...
Oh, could it be the difference between single and double quotes around
that \%uad item?


Best regards,
Tony.

On Thu, May 4, 2017 at 12:08 PM, Christian Brabandt <[email protected]> wrote:
>
> On Do, 04 Mai 2017, Tony Mechelynck wrote:
>
>> On Thu, May 4, 2017 at 8:27 AM, Christian Brabandt <[email protected]> 
>> wrote:
>> [...]
>> > 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
>> [...]
>>
>> Hmm... All this is per-window...
>
> as is 'list' option.
>
>> OK, I'll see how it works in ~/.vim/after/syntax/html.vim
>>
>> I still feel it would belong more logically in 'listchars' which
>> already has entries for nbsp: tab: etc.
>
> Of course Bram has the final say here.
>
>> Would you want to kill these too and replace them by the conceal
>> feature?
>
> I have no such intention and it would be backwards incompatible.
>
> Best,
> Christian
> --
> Mit nichts ist man freigiebiger als mit Ratschlägen, und mit nichts
> sollte man zurückhaltender sein.
>                 -- François de La Rochefoucauld
>
> --
> --
> 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.

-- 
-- 
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