home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / editors / 2819 < prev    next >
Encoding:
Text File  |  1992-11-19  |  923 b   |  32 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!night
  3. From: night@acm.rpi.edu (Trip Martin)
  4. Subject: Re: VI - finding lines longer than 80 characters
  5. Message-ID: <#nz10s#@rpi.edu>
  6. Nntp-Posting-Host: hermes.acm.rpi.edu
  7. Reply-To: night@acm.rpi.edu
  8. References: <1992Nov20.005343.807@pasteur.Berkeley.EDU>
  9. Distribution: na
  10. Date: Fri, 20 Nov 1992 05:04:28 GMT
  11. Lines: 19
  12.  
  13. In <1992Nov20.005343.807@pasteur.Berkeley.EDU> keithv@cory.Berkeley.EDU (Keith Vetter) writes:
  14.  
  15. >In VI, is there an easy way to find all lines whose length
  16. >is greater than 80 characters?  I realize tabs are a problem but
  17. >let's assume that there are no tabs.
  18.  
  19. If you just want to print them out, you can use:
  20.  
  21. :g/.\{81,\}/p
  22.  
  23. Unfortunately, the \{n,m\} construction doesn't work in search mode.
  24.  
  25. BTW, is there a way to easily re-execute the last ex command in vi?
  26. -- 
  27. Trip Martin
  28. night@acm.rpi.edu
  29. --
  30. Trip Martin
  31. night@acm.rpi.edu
  32.