From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078608810424.tru64-unix-managers.marc@archive.invalid> From: Garry Optland Date: Fri, 21 Feb 1997 09:32:34 +0000 To: tru64-unix-managers Subject: Deleting ^M with vi X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078608810424 Is there an easy way to delete carriage returns (^M) in vi? I am editing some html files created on a PC, and they annoy me :-) I tried :%s/^M//g but I get a substitute pattern match failed message, probably because I'm entering shift-6 and shift-m as two characters. I also tried \r, but that deletes all r's from the file. Regards, Garry. -------------------------------------------------------------------- Garry Optland Unix-Internet-CGI-Security Email: garry@pp.nsw.gov.au phone: +61 2 9268 6160 Pacific Power, Park & Elizabeth Streets, Sydney, NSW 2001 Australia --------------------------------------------------------------------