For a buffer containing text "กขค" with UTF-8 encoding:
:perldo s/ข/x/g
=> "กxค"
but :perldo s/[ข]/x/g
=> "xx�xxxxx�".
How to specify Perl's encoding?
Note: Currently I have to use %:!perl -C -Mutf8 -pe 's/[ข]/x/g'
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community