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.
0 Comments:
Post a Comment
<< Home