Tequila Fish Ran-dumb ramblings of me…

3Jul/07Off

vi: Get rid of Windows formatted linebreaks (^M)

If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "^M" characters. There is an easy search/replace you can use in vi/vim to format the file Unix-style:

:%s/\r/\r/g

Tagged as: , , Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.