Replacing unusual characters in vim.

I had a lot of

â€<9d>

that needed to be just plain ” (double quote).

The 9d was actually in blue so it was one character with hex code 009d.
(If you type ga you get info about the character under the cursor.)

So, to search and replace you type:

:% s/â€

then

<C-V>x9d

(which means Ctrl+V then the keys x 9 d)
then

 /"/g

and it works!

Leave a Reply

Your email address will not be published. Required fields are marked *

To see if you are a human *