Replacing unusual characters in vim.

I had a lot of


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/â€



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


and it works!

Leave a Reply

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

To see if you are a human *

This site uses Akismet to reduce spam. Learn how your comment data is processed.