Path: utzoo!attcan!uunet!crdgw1!uakari.primate.wisc.edu!aplcen!haven!decuac!bacchus.pa.dec.com!decwrl!brister From: brister@decwrl.dec.com (James Brister) Newsgroups: comp.editors Subject: Re: vi: search for or go to a line not of length n Message-ID: Date: 25 Sep 90 13:10:29 GMT References: Sender: news@wrl.dec.com (News) Organization: DEC Western Software Lab Lines: 29 In-Reply-To: lee@chsun1.uchicago.edu's message of 25 Sep 90 08:50:27 GMT X-Checksum-Snefru: 56f5fb59 7af13dba 94104ee5 b6176e98 On 25 Sep 90 08:50:27 GMT, lee@chsun1.uchicago.edu (dwight lee) said: > I'd like to be able to search > for a line that isn't 61 characters long. Any reasonably automated method > will do! Regexps, macros... anything. This isn't so easy. Searching for a line that's LONGER than 61 characters isn't to bad: /...............................................................* (That's 63 periods, because you want 62 or more characters) I'm not sure of a simple way to look for lines that are less than 61 characters in length. > Also, is there a way for a search in vi to be inverted? ie "search for > the next line which does not begin with a capital M". This would also be > good for checking on mangled uuencoded files. This is easy: /^[^M] James -- James Brister brister@decwrl.dec.com DEC Western Software Lab., Palo Alto, California. .....!decwrl!brister