vim:如何搜索/替换特殊字符?

Oli*_*ons 24 vim replace

从维基百科复制粘贴到vim之后,我得到了这个:

  1 A
  2 
  3 [+] Métier agricole<200e> – 44 P • 2 C
  4 [×] Métier de l'ameublement<200e> – 10 P
  5 [×] Métier de l'animation<200e> – 5 P
  6 [+] Métier en rapport avec l'art<200e> – 11 P • 4 C
  7 [×] Métier en rapport avec l'automobile<200e> – 10 P
  8 [×] Métier de l'aéronautique<200e> – 15 P
Run Code Online (Sandbox Code Playgroud)

问题是,这<200e>只是一个字符.

我想知道如何将它放入搜索/替换(通过/:).

sid*_*yll 28

查看帮助\%u:

                                /\%d /\%x /\%o /\%u /\%U E678

\%d123  Matches the character specified with a decimal number.  Must be
        followed by a non-digit.
\%o40   Matches the character specified with an octal number up to 0377.
        Numbers below 040 must be followed by a non-octal digit or a non-digit.
\%x2a   Matches the character specified with up to two hexadecimal characters.
\%u20AC Matches the character specified with up to four hexadecimal
        characters.
\%U1234abcd     Matches the character specified with up to eight hexadecimal
        characters.

这些是您可以使用的序列.看起来你有两个字节,所以\%u200e 应该匹配它.无论如何,这很奇怪.UTF-8/ASCII中的20是空格字符,0e是^ N. 检查您的编码设置.