Thats is how this special character is displayed in vim:
Ive tryed with /\x20(\x0e|\x0f)/
and /\xe2\x80[\x8e\x8f]/
without results.
First, if you want to replace byte 0x20 (it is space, if I am not mistaking), you need to use \%x20
, not \x20
because \x
designates a hex digit (unless used inside a collection, there \x20
means what expected). But if you want to replace given unicode character, you should use \%u200E
(\u200E
inside a collection).
Second, both \%x20
and [\x20]
will match character with unicode code 0x20, not byte with code 0x20. It does not matter for the space, but makes difference for code points >0x7F.
Try to replace \u200e
:)
You can test this works by inserting that character into your buffer, and seeing that it appears as <200e>
, if you type this in while in insert mode: <C-R>="\u200e"<CR>
(that's CTRL+R and <CR>
means ENTER)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With