home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!night
- From: night@acm.rpi.edu (Trip Martin)
- Subject: Re: VI - finding lines longer than 80 characters
- Message-ID: <#nz10s#@rpi.edu>
- Nntp-Posting-Host: hermes.acm.rpi.edu
- Reply-To: night@acm.rpi.edu
- References: <1992Nov20.005343.807@pasteur.Berkeley.EDU>
- Distribution: na
- Date: Fri, 20 Nov 1992 05:04:28 GMT
- Lines: 19
-
- In <1992Nov20.005343.807@pasteur.Berkeley.EDU> keithv@cory.Berkeley.EDU (Keith Vetter) writes:
-
- >In VI, is there an easy way to find all lines whose length
- >is greater than 80 characters? I realize tabs are a problem but
- >let's assume that there are no tabs.
-
- If you just want to print them out, you can use:
-
- :g/.\{81,\}/p
-
- Unfortunately, the \{n,m\} construction doesn't work in search mode.
-
- BTW, is there a way to easily re-execute the last ex command in vi?
- --
- Trip Martin
- night@acm.rpi.edu
- --
- Trip Martin
- night@acm.rpi.edu
-