Last active
August 29, 2015 14:20
-
-
Save convexstyle/bccd27af7f2b6d2ab66c to your computer and use it in GitHub Desktop.
Remove carriage return (^M) in Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) vim -b something.txt | |
(2) Escape | |
(3) :%s/^M//s | |
To avoid adding ^M in RubyMine or Web Storm, | |
Preference > General > Uncheck "Use soft wraps in editor" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment