*BSD News Article 32809


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!cs.utexas.edu!utnut!helios.physics.utoronto.ca!jacques
From: jacques@helios.physics.utoronto.ca (Jacques Legare)
Subject: Re: vi
Message-ID: <CsuBux.9zK@helios.physics.utoronto.ca>
Sender: news@helios.physics.utoronto.ca (News Administrator)
Organization: University of Toronto Physics/Astronomy/CITA
References: <1994Jul12.140258.338@sun490.fdu.edu>
Date: Tue, 12 Jul 1994 18:40:08 GMT
Lines: 13

Typing ^V in vi will allow you to type a control char `verbatim.'
That is vi will not interpret it and treat it like a normal character.

So, using your example, to replace all the ^L with spaces one would type.

:1,$ s/^V^L/ /g

Where the notation ^X means hold down the control key and type the
letter X  :-)

I think that the newline char may be an exception.  On some vi's (vies,
vis, ???) I have used ^J is interpreted _regardless_ of any preceeding ^V.
Anyone know why this is so?