Marvellous. Thanks again to all who responded.
Steve
-Original Message-
From: Michael Naumann
Sent: Tuesday, 27 June 2006 7:30 AM
To: vim@vim.org
Subject: Re: How to replace CR with LF
Yes there is, strange as it may seem:
s/\r/\r/
does it
HTH, Michael
On Monday 26 June 2006 23:20, Steve Baldwin wrote:
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