Oct 272010
How do I find and replace non-printable characters in vim?
Answer:
To replace non-printable characters in vim, e.g. get rid of ^M, you need to use the following replace method.
:%s/^M//g
Notes: The ^M above was inputted by holding down "Ctrl+v+m" at the same time.