Article View: comp.editors
Article #3387Re: tilde in vi regular expression
From: Joe Boykin
Date: Wed, 30 Nov 1988 20:14
Date: Wed, 30 Nov 1988 20:14
26 lines
1122 bytes
1122 bytes
In article <17243@agate.BERKELEY.EDU> vojta@math.berkeley.edu (Paul Vojta) writes:
>What does the tilde do in a vi regular expression? For example, if my file
>contains the lines
> xy
> x~y
>and I do /x~y, then it finds the first line and not the second. This is in
>vi version 3.7 on a 4.3bsd Sun; it does it on a vax, too.
The tilde specifies the replacement text from the most recent substitute
command. For example:
:s/foo/bar/
/~/
would search for "bar".
----
Joe Boykin
Encore Computer Corp
Chairman, IEEE Computer Societies
Technical Committee on Operating Systems
UUCP: encore!boykin
ARPA: boykin@encore.com
Technical Details
Message-ID:
<4316@encore.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!multimax!boykinReferences:
<17243@agate.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!multimax!boykin From: boykin@multimax.Encore.COM (Joe Boykin) Newsgroups: comp.editors Subject: Re: tilde in vi regular expression Message-ID: <4316@encore.UUCP> Date: 30 Nov 88 20:14:05 GMT References: <17243@agate.BERKELEY.EDU> Sender: news@encore.UUCP Reply-To: boykin@multimax.UUCP (Joe Boykin) Organization: Encore Computer Corp, Marlboro, MA Lines: 26