Path: utzoo!attcan!uunet!mcsun!ukc!slxsys!ibmpcug!dylan From: dylan@ibmpcug.co.uk (Matthew Farwell) Newsgroups: comp.editors Subject: Re: vi: search for or go to a line not of length n Message-ID: <1990Sep27.133245.6050@ibmpcug.co.uk> Date: 27 Sep 90 13:32:45 GMT References: <62420017@hpl-opus.HP.COM> <4769@taux01.nsc.com> Reply-To: dylan@ibmpcug.CO.UK (Matthew Farwell) Organization: The IBM PC User Group, UK. Lines: 22 In article <4769@taux01.nsc.com> avi@taux01.UUCP (Avi Bloch) writes: >This doesn't always work, since an empty line is also a line 'which does not >begin with a capital M' and that search pattern will only find lines with at >least 1 character on it. > >I don't of any way that will also catch empty lines. Offhand, I can't think of anything that will do this. The only thing that comes close is :v/^M/# which prints out lines which don't have an M at the beginning (including empty lines), with their respective line numbers. You can then use the G command to go to those line numbers. Bit of a bodge really. Dylan. -- Matthew J Farwell | Email: dylan@ibmpcug.co.uk The IBM PC User Group, PO Box 360,| ...!uunet!ukc!ibmpcug!dylan Harrow HA1 4LQ England | CONNECT - Usenet Access in the UK!! Phone: +44 81-863-1191 | Sun? Don't they make coffee machines?