Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ukma!uflorida!indri!aplcen!bink From: bink@aplcen.apl.jhu.edu (Ubben Greg) Newsgroups: comp.unix.questions Subject: Re: Yes, vi can reformat a paragraph without using !child. Summary: So write a loop. Message-ID: <1684@aplcen.apl.jhu.edu> Date: 24 Jun 89 18:52:55 GMT References: <317@oha.UUCP> <2783@solo8.cs.vu.nl> Reply-To: bink@aplcen.apl.jhu.edu (Greg Ubben) Followup-To: comp.editors Organization: The Johns Hopkins University, Baltimore MD Lines: 15 In article <2783@solo8.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: > > I'd rather not reformat a long paragraph line by line, thank you. But it's not too much harder to expand on Mr. Olekshy's macro to make it call itself recursively until the end of a paragraph is reached. Perhaps adding a "+f k" will work to abort the macro when the next line doesn't contain more than one word (but I haven't tried it...) On a related issue, does anyone know why vi has such a problem with tail recursion? It seems silly that simply adding an ineffective "l" command after the recursive call will solve this -- I would think tail recursion would be easier to implement if anything... -- Greg Ubben bink@aplcen.apl.jhu.edu