Complete.Org: Mailing Lists: Archives: discussion: March 1999:
Re: [aclug-L] vi question
Home

Re: [aclug-L] vi question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ACLUG List <aclug-L@xxxxxxxxxxxx>
Subject: Re: [aclug-L] vi question
From: Jeff <schaller@xxxxxxxxxxxxx>
Date: Wed, 31 Mar 1999 11:00:06 -0600 (CST)
Reply-to: aclug-L@xxxxxxxxxxxx

On Wed, 31 Mar 1999, Sanjay Dhar wrote:
[ vi showing ^M, pico not ]

I just ran a little test.
You can have ^M chars show up in vi if you (or someone) types
^v^m
to insert it.

If you then load the file up in pico, the ^m disappears.  If you save the
file out, though, it _really_ disappears. If you open the file in pico and
exit without saving, the ^m stays.

So, I'm guessing that you have actual ^m characters in the file.
You can get rid of them with:
:1,$s/^v^m$//
(where ^v^m is you hitting control-v control-m)

There's also the dos2unix command.

-jeff
-----
"Nice boy, but about as sharp as a sack of wet mice."
                -- Foghorn Leghorn


[Prev in Thread] Current Thread [Next in Thread]