I find that there seems to be a problem with "%s" in this regard.

Source text: "וְהָאָרֶץ, הָיְתָה תֹהוּ וָבֹהוּ"

If I search using / for \u05b8 the search fails. If I instead use Ctrl+V in 
insert that character, the search works.

However, using "s" and a character class I cannot find either, e.g. 
:s/[\u05b0-\u05c0]/ fails to find it.

This seems to be a bug in how combining characters are dealt with.



On Tuesday, April 18, 2023 at 5:40:21 PM UTC+3 Ron Aaron wrote:

> Hmm. OK, that's not as awkward as using the xxd hack. I'll try it.
>
> On Sunday, April 16, 2023 at 6:44:31 PM UTC+3 Bram Moolenaar wrote:
>
>>
>> > As a followup to my previous post re delcombine 
>> > <https://groups.google.com/g/vim_dev/c/oUjjv92rLSg/m/mPDPszs1AgAJ> , 
>> I'm 
>> > looking for an option to display combining characters separately. That 
>> is, 
>> > to treat them as if they were regular characters, in order to make 
>> editing 
>> > them much easier. 
>> > 
>> > I can't find an option for that. I'm willing to create one, but I'm not 
>> > sure where the right place to do that is. 
>>
>> No, this currently does not exist. 
>>
>> What you perhaps could do is write two mappings. One would take the 
>> text of a line and put a space in front of each combining character. 
>> The second mapping would do the reverse. 
>>
>> -- 
>> BRIDGEKEEPER: What is your favorite colour? 
>> LAUNCELOT: Blue. 
>> BRIDGEKEEPER: Right. Off you go. 
>> "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD 
>>
>> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net 
>> \\\ 
>> /// \\\ 
>> \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// 
>> \\\ help me help AIDS victims -- http://ICCF-Holland.org /// 
>>
>

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/98038425-ac90-4a4d-8c27-f819e1cdb73fn%40googlegroups.com.

Raspunde prin e-mail lui