with vim This is how this special character is displayed in vim: I tried without ...">

How to replace "LEFT-TO-RIGHT MARK" (U + 200E) - <200e> with vim

This is how this special character is displayed in vim:

LEFT-TO-RIGHT MARK

I tried without /\x20(\x0e|\x0f)/and /\xe2\x80[\x8e\x8f]/.

+5
source share
4 answers

Firstly, if you want to replace byte 0x20 (this is a space, if I'm not mistaken), you need to use it \%x20, but not \x20because it \xindicates the sixth digit (if it is not used inside the collection, it \x20means that it was expected). But if you want to replace this unicode character, you must use \%u200E( \u200Einside the collection).

-, \%x20 [\x20] Unicode 0x20, 0x20. , > 0x7F.

+7

\u200e:)

, , <200e>, : <C-R>="\u200e"<CR> ( CTRL + R <CR> ENTER )

+3

Unicode. gnome-terminal Ctrl Shift U, (, 200e), Enter.

+2

<200e>, yl, () .

:%s/<C-R>"/replacement/g

( <C-R> - Control+R, ).

+2

All Articles