Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!solo.csci.unt.edu!sol!mstgil From: mstgil@sol (Marc Ph. A. J. St.-Gil) Newsgroups: comp.editors Subject: Re: Xedit is better than vi and emacs Message-ID: Date: 19 Apr 91 21:45:04 GMT References: <2197@pdxgate.UUCP> <1991Apr16.193558.9369@njitgw.njit.edu> <1991Apr18.141001.20339@njitgw.njit.edu> Sender: usenet@solo.csci.unt.edu (Usenet News) Reply-To: mstgil@sol.acs.unt.edu Distribution: usa Organization: University of North Texas, Denton Lines: 26 ken@hertz.njit.edu (ken ng cccc) writes: >EXCELLENT! Thank you! Now can you tell me how to get a retrive and >command edit for ':!' and '!!'? Please? how about inserting your ':!' command on a new line in your document, then use something like "xdd to save to buffer x, then @x to execute which you can do more than once ('!!'), then to edit, "xp to put on new line, edit line, and "xdd again to save new copy in buffer x, etc... Not exactly simple or elegant, but functional. > >all/ugga/&/booga/ = grep 'ugga.*booga' or /ugga.*booga > >because .* matches anything except a newline >Not quite the same, I want all occurances of 'ugga.*booga' and 'booga.*ugga'. >AND I want to be able to selectively open up the text around the lines >as well. Yes I can do 2 greps and merge them together, but I then I >loose the line order they occurred on. Got me there. I misunderstood your example. :) >Kenneth Ng -- Marc St.-Gil, UNIX Systems Administrator mstgil@{sol,vaxa,vaxb}.acs.unt.edu University of North Texas 817/565-2324 mstgil@{ponder,solo}.csci.unt.edu Academic Computing Services DISCLAIMER: My employers had no idea I was PO Box 13495, Denton TX, 76203 going to say that.