From owner-freebsd-chat Tue Oct 2 13:52:59 2001 Delivered-To: freebsd-chat@freebsd.org Received: from brain.mics.net (brain.mics.net [209.41.216.21]) by hub.freebsd.org (Postfix) with ESMTP id 8B6E937B407 for ; Tue, 2 Oct 2001 13:52:52 -0700 (PDT) Received: by brain.mics.net (Postfix, from userid 150) id 73CE817BD4; Tue, 2 Oct 2001 16:52:51 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by brain.mics.net (Postfix) with ESMTP id 5AFAC15CC5; Tue, 2 Oct 2001 16:52:51 -0400 (EDT) Date: Tue, 2 Oct 2001 16:52:51 -0400 (EDT) From: David Scheidt To: Rahul Siddharthan Cc: j mckitrick , "Gary W. Swearingen" , freebsd-chat@FreeBSD.ORG Subject: Re: code density vs readability In-Reply-To: <20011002222645.C28111@lpt.ens.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 2 Oct 2001, Rahul Siddharthan wrote: > > > only.) But my big plus for vim is its paragraph-level operations, eg > > > gqap for formatting a paragraph. Not a big deal with programs, but a > > > huge help with text and emails, and even handles quoted email > > > correctly and is great at unmangling Outlook-generated mail. I don't > > > think nvi has that; traditional vi doesn't. > > > > > > > I'm not convinced this needs to be part of the editor. Checkout par > > (ports/textproc/par), I think it does everything vim does. > > I just looked at the package description file. > > Par is a filter that copies its input to its output, changing all > white characters (except newlines) to spaces, and reformatting > each paragraph. Paragraphs are separated by protected, blank, and > bodiless lines (see the Terminology section for definitions), and > optionally delimited by indentation (see the d option in the Options > section). > > So what would you do with par if you only wanted to format one > paragraph in one text, and didn't want to jump through several hoops > to do so? A common occurrence with latex documents, I assure you, !{par Is how I normally invoke par from vi. Sometimes, !} or ![[ or !]] too. !{par pass the text from the cursor to the previous paragraph break (a blank line, or as set using the para command) to par, and replaces it with the output. !} does until the next paragraph. ]] and [[ are on sections. Both will take a numeric arguement in the normal vi fashion. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message