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