Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!geac!censor!isgtec!ted From: ted@isgtec.uucp (Ted Richards) Newsgroups: comp.editors Subject: Re: vi: search for or go to a line not of length n Keywords: vi search goto uudecode Message-ID: <669@isgtec.UUCP> Date: 2 Oct 90 15:00:26 GMT References: <1990Sep25.135441.10647@ibmpcug.co.uk> Sender: news@isgtec.UUCP Reply-To: ted@isgtec.UUCP (Ted Richards) Organization: ISG Technologies Inc. Mississauga Ont. Canada Lines: 20 In article <1990Sep25.135441.10647@ibmpcug.co.uk> dylan@ibmpcug.CO.UK (Matthew Farwell) writes: : In article lee@chsun1.uchicago.edu (dwight lee) writes: : >Most uuencoded lines are 61 characters long. 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. : I don't think theres any easy way to actually do this within vi. If you : want to do this, use something like awk or perl. How about v/^.............................................................$/ This executes for every line that does not contain exactly 61 characters (provided you type in exactly 61 dots :-). could, for example, put a mark at the beginning or end of every line that you want to edit individually. -- Ted Richards ...uunet!utai!lsuc!isgtec!ted ted@isgtec.UUCP ISG Technologies Inc. 3030 Orlando Dr. Mississauga Ont. Canada L4V 1S8