regex - Does Vim have an equivalent to \X to match Unicode "grapheme clusters"? -
unicode specifies \x
should match "extened grapheme cluster" - instance base character followed 0 or more combining characters. (i believe simplification may suffice needs.)
i'm pretty sure @ least perl supports \x
in regular expresions.
but vim defines \x
match non-hexadecimal digit.
does vim have equivalent \x
or way match unicode extended grapheme cluster?
vim have concept of combining or "composing" characters, its documentation not cover whether or how supported in regular expressions.
it seems vim not yet support directly, still interested in workaround search highlight characters include combining character in @ least basic range of u+0300
u+0364
.
you can search characters , ignore composing characters \z
. or can search range of unicode characters. read :help /[]
more information on both.
the last post here may offer more help:
but vim's regex not have character class perl.
Comments
Post a Comment