To replace ^M characters that did not quite make it into carriage return when displayed in vi:
:%s/<Ctrl-V><Ctrl-M>/<Ctrl-V><Enter>/g
Note that
<Ctrl-V> is a magic sequence that allows vi to uninterpret the next special key, inserting its control code instead.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.