Path: utzoo!mnetor!uunet!husc6!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!pc.ecn.purdue.edu!cb.ecn.purdue.edu!patkar From: patkar@cb.ecn.purdue.edu (The Silent Killer) Newsgroups: comp.editors Subject: formatting in vi Message-ID: <215@cb.ecn.purdue.edu> Date: 6 Feb 88 18:27:45 GMT Organization: Purdue University Engineering Computer Network Lines: 22 >There has been a problem I have had with formatting paragraphs in >vi: the definition using "}" seems to be "up to the next empty line", >but when editing *roff files I only want to format up to the next >line containing a dot command. > >So, how do I easily tell vi to stop where desired? You can put the following line in your .exrc. map /^\. Then you can just type to format the paragraph. This macro will search for a dot at the beginning of a line, mark it as 'a, go back to the original position and format till the marked line. >Robert J. Drabek Anant patkar