Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!rutgers!galaxy.rutgers.edu!sugra!ken From: ken@sugra.uucp (Kenneth Ng) Newsgroups: comp.editors Subject: Re: Xedit is better than vi and emacs Message-ID: <1991Apr28.174250.8934@sugra.uucp> Date: 28 Apr 91 17:42:50 GMT References: <1991Apr21.011316.13111@zorch.SF-Bay.ORG> <1991Apr26.155233.7486@chinet.chi.il.us> Organization: Private computer - Bloomfield NJ USA Lines: 27 In article <1991Apr26.155233.7486@chinet.chi.il.us>, les@chinet.chi.il.us (Leslie Mikesell) writes: : In article <1991Apr24.155049.21710@njitgw.njit.edu> ken@hertz.njit.edu (ken ng cccc) writes: : >For example, a hidden procedure: : >procedure foo( var a, b, c : integer); : >----------------------- 6 lines not displayed --------------------------- : If you just want to see something in vi without going there to edit : it, you can use :g/pattern/p or some variation (:g/pattern/-1,+1p). : to get the piece you want to see. It isn't the same thing at all, : since you can't edit what you see, but it is sometimes handy. Iffy, for trival routines its not too bad, for real work (and yes you can really do real work in pascal), it tends to break down for things like declarations that span multiple lines. At best it is a tweak because you can't edit what you displayed (as you said), and you have to execute it manually every time you want to do so rather than have an XEDIT macro do it for you automantically. And yes, you can add a span to the ':g...p' but then you have to remember which routines span a line and which don't, or you have to execute the command several times (YET ANOTHER PLACE A RETRIEVE KEY ON ':' WOULD BE VERY NICE). Remember, contray to popular opinion, the computer is supposed to work for the human, not the reverse. -- Kenneth Ng Please reply to ken@hertz.njit.edu until this machine properly recieves mail. "No problem, here's how you build it" -- R. Barclay, ST: TNG