IntTech
Technology we find Interesting and Tricks of the Trade
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.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment