Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!goanna!minyos.xx.rmit.oz.au!s887212 From: s887212@minyos.xx.rmit.oz.au (Stephen Riehm [Romulis]) Newsgroups: comp.editors Subject: Re: Vi's (auto-fill-mode) Message-ID: <1991Jan27.035306.27823@minyos.xx.rmit.oz.au> Date: 27 Jan 91 03:53:06 GMT References: <1991Jan24.225511.3375@massey.ac.nz> Organization: RMIT Computer Centre, Melbourne Australia. Lines: 35 R.Singh@massey.ac.nz (R. Singh) writes: >This might be a stupid one. How can you get Vi to wrap your sentences around and >insert CR's at the end of each line. I know it is possible to do this literally >but how do you get it to keep the words intact and not cut a sentence in a >middle of a word. For EMACS users, an equivalent of the (auto-text-fill). >Thanx :set wrapmargin n will do the trick.. where n is any nnumber >0 (n=1 will wrap 1 character from the right margin) another cute trick for this is to pipe paragraphs or the entire file through fmt like {!}fmt^M { - move to start of paragraph ! - pipe the following text to a program } - specify the whole paragraph to get piped fmt - program to pipe paragraph to hope this helps catch ya ========================================================================= Romulis [Stephen Riehm] Royal Melbourne Institute of Technology, (124 Latrobe St., Melbourne.) s887212@minyos.xx.rmit.oz.au Australia. "The PLO, IRA and other _friendly_ organisations claimed responsibility for the views expressed above last night in press conferences around the world" -- thanx in advance ============================================================================ Romulis [Stephen Riehm] Royal Melbourne Institute of Technology, (124 Latrobe St., Melbourne.)