Yes, vi can reformat a paragraph without using !child.

Ubben Greg bink at aplcen.apl.jhu.edu
Sun Jun 25 04:52:55 AEST 1989


In article <2783 at solo8.cs.vu.nl> maart at 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 at aplcen.apl.jhu.edu



More information about the Comp.unix.questions mailing list