How do I replace or find non-printable characters in vim regex?

Viewed 49789

I have a file with some non-printable characters that come up as ^C or ^B, I want to find and replace those characters, how do I go about doing that?

7 Answers

An option not mentioned in other answers.

Delete a specific unicode character with a long hex code, e.g. <200b>:

:%s/\%U200b//g
Related