Such as ^M seen when files are incorrectly transferred between platforms.

:%s/[Ctrl-v][Ctrl-m]//g

i.e. [Ctrl-v] mean press the Ctrl key and v together. The second control character (^M) is the one we want to remove.

About troyski

I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

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

Private

Post navigation