Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uunet!mcsun!ukc!stl!ndh From: ndh@stl.stc.co.uk (Neale D Hind ) Newsgroups: comp.editors Subject: Re: Global Empty Line Removal in vi? Message-ID: <3985@stl.stc.co.uk> Date: 29 Jan 91 14:03:59 GMT References: <1991Jan24.172344.28877@Veritas.COM> <2692@wn1.sci.kun.nl> <1991Jan25.182043.10324@cs.uiuc.edu> <1991Jan28.014157.5388@cs.ucla.edu> Sender: news@stl.stc.co.uk Reply-To: "Neale D Hind " Organization: STC Technology Limited, London Road, Harlow, Essex, UK Lines: 16 My contribution to the great global line removal debate: From within vi use - :g/^[spacetabformfeed]*$/d ---------------- This deletes any line that contains any combination of any number of only linefeeds, tabs, spaces and formfeed characters. For spacetabformfeed use the spacebar, tab key or Ctrl+I, Ctrl+V Ctrl+L ---------------- ---- Neale D. Hind - (N.D.Hind@stl.stc.co.uk)