Skip to content

Instantly share code, notes, and snippets.

@xntrik
Created July 18, 2011 05:53
Show Gist options
  • Save xntrik/1088638 to your computer and use it in GitHub Desktop.
Save xntrik/1088638 to your computer and use it in GitHub Desktop.
getting rid of pesky carat Ms or ^M characters in vim even after a dos2unix conversion.
:g/^M/s///g
BUT, you can't just write <Shift>+6 for the ^ character, you need to hold down <Ctrl>+VM (or <Ctrl>V <Ctrl>M).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment