From: Garry Optland <garry () pp ! nsw ! gov ! au>
To: tru64-unix-managers
Subject: Deleting ^M with vi
Date: Fri, 21 Feb 1997 09:32:34 +0000 [thread overview]
Message-ID: <96078608810424.tru64-unix-managers.marc@archive.invalid> (raw)
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
--------------------------------------------------------------------
reply other threads:[~1997-02-21 9:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox