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

What do you mean with "%s" ?

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

Perhaps, depends on how you look at it.  A search normally sees a
character plus any following combining character as one item.  Therefore
a match will be tried at a base character, and the next tries at the
next base character.  There is no try for a match on a composing
character.  This may seem wrong when searching for a composing
character, but many items such as "." would match while they should not.

You can prepend a "." before the composing character and then somehow
handle matching the base character as well.  This is a bit tricky.

-- 
The MS-Windows registry is no more hostile than any other bunch of state
information... that is held in a binary format... a format that nobody
understands... and is replicated and cached in a complex and largely
undocumented way... and contains large amounts of duplicate and obfuscated
information...  (Ben Peterson)

 /// 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/20230423165053.893801C074F%40moolenaar.net.

Raspunde prin e-mail lui