tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Searchstring with tilde in vi
@ 2002-09-25 14:18 hans van der heide
  0 siblings, 0 replies; only message in thread
From: hans van der heide @ 2002-09-25 14:18 UTC (permalink / raw)


Hi folks,

According to the many answers I already received, escaping the tilde with a
backslash should work.
I tried it on another Tru64 System and - look-and-wonder - I could search
and find all tildes.
Probably the system I tested on, wasn't setup correctly (I also had many
problems with tabs settings a.s.o.)


[\~] works for me. (Just [~] works in vim.)
:/\~/ worked for me

Thanks for your quick responses in just 5 minutes

Paul A Sand, 
Peter Sherwood (yes I thought it was a Tru64 problem, cause it seemed to
occur only on Tru64, not linux, not ultrix)
Gert Maaskant (ja ik ben hollander, maar woon in zwitserl)

and probably many others to come telling me it should work

Greetings,

Hans van der Heide ( mailto:hans.vanderheide@bdl.ch )

Original Question:
Hello folks,

I am struggling with the following:

How can I search with "vi" for the character "~" (tilde). I do not know of a
way escaping this character (implemented in vi as a shortcut for saved last
searchresult): the backslash doesn't work for tilde, i cannot use a [.-.] or
[^.-.] sequence as a trick because tilde is the last printable below 0x7F.

Anybody know a trick?


Greetings,

Hans van der Heide ( mailto:hans.vanderheide@bdl.ch )




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-25 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-25 14:18 SUMMARY: Searchstring with tilde in vi hans van der heide

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox