🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2573

Re: VI - finding lines longer than 80 characters

#2573
From: Trip Martin
Date: Fri, 20 Nov 1992 05:04
19 lines
954 bytes
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
Technical Details
Message-ID: <#nz10s#@rpi.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!night
References: <1992Nov20.005343.807@pasteur.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!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