VI Editor for Unix/Linux/Mac

It’s been a while since I had to do this, but recently I had to look up how to remove those carat M (^M) characters from files I uploaded to a server. Here is a great article on exactly how below. In short, using VI or VIM editor type the following:

:%s/^M//g

* NOTE: to make the carat M, use CTRL+V CTRL+M not carat M.

====

Here’s that article: VIM removing ^M characters

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...


Leave a Reply

You must be logged in to post a comment.