Thursday, March 4, 2010

Vim and Mac to Unix and CR to LF

 
How do you translate a CR
to a LF? How to your translate
a Classic Mac text file to Unix?

Here's a simple command that will
do this:

:%s/\r/\r/g

Here's where I learned how to do
this:

Change end-of-line format for dos-mac-unix

Ed Abbott

No comments:

Post a Comment