🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3086

formatting in vi

#3086
From: The Silent Killer
Date: Sat, 06 Feb 1988 18:27
22 lines
982 bytes
>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
Technical Details
Message-ID: <215@cb.ecn.purdue.edu>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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