Thanks all. That worked very nicely. I'm curious though - is there any way to substitute CR with LF using regexp's?
Thanks, Steve > -----Original Message----- > From: Bill McCarthy > Sent: Tuesday, 27 June 2006 6:54 AM > To: Steve Baldwin > Cc: Vim List > Subject: Re: How to replace CR with LF > > On Mon 26-Jun-06 3:06pm -0600, Steve Baldwin wrote: > > > I have a file containing carriage returns and I want to > > replace them with line feeds. Note it is not CR-LF -> LF, > > but just CR -> LF. Can someone please enlighten me as to > > how to do this. > > If you don't have mac format in your 'ffs', first add it > before loading your mac file: > > :se ffs+=mac > > After loading your mac file: > > :se ff=unix > > -- > Best regards, > Bill