Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!mel.dit.csiro.au!yarra!pta!bgg From: bgg@pta.oz.au (Ben Golding) Newsgroups: comp.editors Subject: Re: Yet another screen editor Keywords: new editor Message-ID: <3879@pta.oz.au> Date: 18 Jan 91 03:30:47 GMT References: <3042@unccvax.uncc.edu> <1991Jan16.230527.3200@cs.uiuc.edu> Organization: Pyramid Technology Corporation, Sydney Lines: 25 In article <1991Jan16.230527.3200@cs.uiuc.edu> joshi@cs.uiuc.edu (Anil Joshi) writes: >2. Try not to force the user to give counts for everything. This is a >real problem wih vi (like I wanna delete next some words, so I have to >count the number of words or think up a complicated Reg.Expr. Deletion >of lines poses the same problem). I disagree entirely. Vi has exactly this capability by using the various positioning commands, for example: d) delete to end of sentence d} delete to end of paragraph d$ delete to end of line d% delete to matching parenthesis dfx delete up to and including first character x dtx delete up to first character x By using these commands which work on natural textual objects, I find I rarely need to resort counting words; when I do, I tend to delete one object and then use "." to delete as many as I want rather than counting. The only gripe I have is that the definitions of what constitutes a paragraph or a sentence are hard coded in. However, the defaults are sensible and rarely give unexpected results. Ben.