home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!cs.utexas.edu!asuvax!ennews!news
- From: sridhar@asuvax.eas.asu.edu (Sridhar Venkataraman )
- Subject: Re: How do I search for blank lines in vi?
- Message-ID: <1993Jan5.074028.17620@ennews.eas.asu.edu>
- Sender: news@ennews.eas.asu.edu (USENET News System)
- Organization: ASU, Valley of the Sun(s), AZ
- References: <1ibcb4INNg3f@haydn.crhc.uiuc.edu>
- Distribution: inet
- Date: Tue, 5 Jan 1993 07:40:28 GMT
- Lines: 12
-
- ttsai@crhc.uiuc.edu (Timothy Tsai) writes:
-
- )How can I search for blank lines using vi? By blank lines, I mean lines that
- )only have a CR. Is it possible, and is is the same for search and
- )search-and-replace? Please email me any help. Thanks.
-
- ^$ (caret followed by dollar) is the reg. exp. for a blank line. /^$
- from vi should find it. For details, check out ed(1).
-
- Sridhar.
- --
- Sridhar Venkataraman sridhar@asuvax.eas.asu.edu
-