Date: Tue, 25 May 1999 16:07:20 -0600 (CST) From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> To: Kent Stewart <kstewart@3-cities.com> Cc: freebsd-questions@freebsd.org, Mark Ovens <marko@uk.radan.com> Subject: Re: replace in vi... Message-ID: <Pine.OSF.3.96.990525155900.2706E-100000@Gina.esfm.ipn.mx> In-Reply-To: <374B0143.BA408940@3-cities.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 May 1999, Kent Stewart wrote:
>
>
> Kent Stewart wrote:
> >
> > Eduardo Viruena Silva wrote:
> > >
> > > ehem...
> > >
> > > I'm using "vi" and I would like to know how to replace
> > > character '\0xb4' by character '\'' in all my text.
> > > [I mean, character which has code: 0xb4 = 0264 = 148
> > > by apostrophe]
>
> I forgot to tell you that a 148 is a 0x94 and not a 0xb4.
>
ooops!
sorry...
> > What I did was the following
> >
> > .,$s/^V<alt>+180/'/<cr>
> >
> > The control V allows you to enter a special character and holding the
> > <alt> key down and pressing 180, enters your 0xb4. If you have more
> > than one occurance on a line, you will need to add a "g" at the end
> > after then last "/". I'm not on my FreeBSD system and it matters which
> > <alt>key you use.
> >
it works!
thank you!
Mark Ovens also answered me and he suggested: ^Xcc where cc is the
hex code of the character.
It is more suitable because my X terminal is pretty weird and cannot
understand what a "alt-xxx" code is. Nevertheless it worked in the
FreeBSD console.
Thank you Kent!
Thank you Mark!
______ _
* / /###\ / \ __
/\ /\ * / ./#### \ * \__|_/ | |
/ \/ \ | b#####| * _ | __ | | __
= .. \____ \ \_\#####/ / \| / \ | | /\_\/
= \_| * \___\###/ * \_/\_/\__/\__\/_/\__/
= \______/ _
| |
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?Pine.OSF.3.96.990525155900.2706E-100000>
