Article View: comp.editors
Article #2971Re: How do I search for blank lines in vi?
From: Lachlan Cranswick
Date: Wed, 06 Jan 1993 05:34
Date: Wed, 06 Jan 1993 05:34
63 lines
2054 bytes
2054 bytes
mick@dcs.bbk.ac.uk (Mick Farmer) writes: >Hi, >Timothy asks how to do this. Doesn't anyone learn about >regular expressions any more? >Try :/^$/ >which means go to the command line (:), and search for a >line (/.../) containing no characters between the start of >line (^) and the end of line ($). >Regards, >Mick [Sarcasm mode on] Yes Tim, why are you wasting all this bandwidth with vi questions? Don't you know that the "i" in vi stands for intuitive? Everything is so damm obvious in vi it is no fun to use at all. In fact, most new users on our UNIX box complain that vi is too easy to use - so I give them PICO - that PICO command menu at the bottom of the screen just goes right against the concept of user friendliness that vi pioneered.. Summary:- As vi is the highpoint of our civilization, its all down hill from here. (too bad if you missed it) End of story. [Sarcasm mode off] Sorry for the above, I have to wait 90 minutes for Roger Ramjet and need something to do. (Problem about Micks solution is that it actually makes sense - bit of a worry) Lachlan. "Postman Pat.... Postman Pat......... Postman Pat and his black and white cat, all the birds are singing, Pat feels he is a really happy man." (85 minutes till Roger Ramjet) -- Lachlan Cranswick - CSIRO _--_|\ lachlan@dmp.CSIRO.AU Division of Mineral Products / \ tel +61 3 647 0367 PO Box 124, Port Melbourne 3207 \_.--._/ fax +61 3 646 3223 AUSTRALIA v
Technical Details
Message-ID:
<1993Jan6.053454.415@dmp.csiro.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!mel.dit.csiro.au!dmp.csiro.au!lachlanReferences:
<1ibcb4INNg3f@haydn.crhc.uiuc.edu> <mick.726237092@picus>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!mel.dit.csiro.au!dmp.csiro.au!lachlan From: lachlan@dmp.csiro.au (Lachlan Cranswick) Subject: Re: How do I search for blank lines in vi? Message-ID: <1993Jan6.053454.415@dmp.csiro.au> Organization: CSIRO Division of Mineral Products, Melbourne, AUSTRALIA References: <1ibcb4INNg3f@haydn.crhc.uiuc.edu> <mick.726237092@picus> Distribution: inet Date: Wed, 6 Jan 1993 05:34:54 GMT Lines: 63