(Enter the the ^M by hitting ctrl-v and then the return key.)
:1,$s/^M/\r/g
2819 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
:1,$s/^M/\r/g
You need to create an account or log in to post comments to this site.
%
is shorthand for 1,$, and as odd as it looks you can use\r
for both sides of the substitution and it works. This way, you don't have to remember Control-V.