Posted on February 20, 2009
If there are ^M at the end of every line when you view them in vim, you can do this: :%s/^M//g To get the “^M” bit, hit ctrl-v and then ctrl-m.
:%s/^M//g
Categories: vim
Tags: carriage return, gvim, new line, vim
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Notify me of follow-up comments by email.
Notify me of new posts by email.