home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / editors / 3145 < prev    next >
Encoding:
Text File  |  1993-01-05  |  950 b   |  25 lines

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