Path: 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

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