Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2000 13:14:52 -0500
From:      "Potts, Ross" <rpotts@harris.com>
To:        'Brian Beattie' <beattie@beattie-home.net>, Richard Schuder <rschuder@coolwave.net>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Replacing text with forward slash in vi
Message-ID:  <95B669A7D872D41182A600508BDFFB8C12D6A0@mlbmx7.ess.harris.com>

next in thread | raw e-mail | index | archive | help
Well, when I have a MS client ftp a long filename with spaces interspersed in
the name, I use ', 2 over from the "l" key, for those that may confuse it with
the backwards `.  Maybe that will handle the slashes also.

-----Original Message-----
From: Brian Beattie [mailto:beattie@beattie-home.net]
Sent: Wednesday, December 20, 2000 12:40 PM
To: Richard Schuder
Cc: freebsd-questions@freebsd.org
Subject: Re: Replacing text with forward slash in vi


On Wed, 20 Dec 2000, Richard Schuder wrote:

> Here's a tough one!
> 
> I want to replace the two dots ``..'' with a URL address like
> ``http://website.address.com'' in the following text:
> 
> "../path/to/website/index.html"
> 
> The vi command would be...
> 
> :s/\../http://website.address.com
s/\.\./http:\/\/website.address.com/
> 
> but, the two forward slashes following "http:" confuse vi's replace command.

Brian Beattie            | This email was produced using professional quality,
beattie@beattie-home.net | standards based software.  Users of Microsoft
                         | products or other substandard software should
www.beattie-home.net     | contact the author about receiving a Free upgrade to
                         | FreeBSD or Linux.   "FreeBSD: The power to serve"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95B669A7D872D41182A600508BDFFB8C12D6A0>