.comment-link {margin-left:.6em;}


Sunday, January 26, 2014

Fixing ^M in text using VIM

It is easiest to select your text block in visual mode, "v".  Then enter s/^M/\r/g. 
Keys for this is v for visual mode, then use cursor movement to select the text. 
Then : to give a prompt that looks like :'<,'>. 

Then s/ to give the s/^M, the rest should be self explanatory. 

Bookmark and Share