Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ames!ncar!unmvax!pprg.unm.edu!topgun.dspo.gov!lanl!alpha!sct From: sct@alpha.lanl.gov (Stephen Tenbrink) Newsgroups: comp.unix.questions Subject: vi format command Keywords: paragraph vi editor Message-ID: <964@alpha.lanl.gov> Date: 11 Sep 89 22:55:15 GMT Organization: Los Alamos National Laboratory Lines: 9 Is there a technique for reformatting a paragraph when using vi? Sometimes when one has deleted and added text to a paragraph the lines no longer end near the right side of the screen. Some editors such as EDT have a technique of selecting the whole paragraph and then entering a command to reformat the whole paragraph. The word wrap margin is used to set the right hand margin. I'm sure there is a way to do this easier than inserting 'returns' and using the 'J' command. Does anyone have an answer?