From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: hans van der heide Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Searchstring with tilde in vi Date: Wed, 25 Sep 2002 16:18:35 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <8D7FA7CC3748D511A11C00E018C492DC0A875D@bdl07> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1032963547 17030 127.0.0.1 (25 Sep 2002 14:19:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2002 14:19:07 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17uD0L-0004QW-00 for ; Wed, 25 Sep 2002 16:19:05 +0200 Original-Received: (qmail 8252 invoked by uid 5); 25 Sep 2002 14:19:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8243 invoked by uid 49493); 25 Sep 2002 14:19:02 -0000 Original-Received: from hans.vanderheide@bdl.ch by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. spamassassin: 2.50-cvs. Clear:SA:0(-2.5/5.0):. Processed in 0.520836 secs); 25 Sep 2002 14:19:02 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 25 Sep 2002 14:19:02 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2Z00JDSZROP2@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 25 Sep 2002 10:19:02 -0400 (EDT) Original-Received: from bdl07.bdl_dom (dclient217-162-202-84.hispeed.ch [217.162.202.84]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2Z002NAZR684@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 25 Sep 2002 10:18:44 -0400 (EDT) Original-Received: by bdl07 with Internet Mail Service (5.5.2653.19) id ; Wed, 25 Sep 2002 16:18:42 +0200 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:1849 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1849 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 )