From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 16:51:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9655A16A4B3 for ; Wed, 8 Oct 2003 16:51:48 -0700 (PDT) Received: from mta6.adelphia.net (mta6.adelphia.net [68.168.78.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 870D943F93 for ; Wed, 8 Oct 2003 16:51:47 -0700 (PDT) (envelope-from parv_fm@mailsent.net) Received: from moo.holy.cow ([68.67.226.198]) by mta6.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20031008235149.GLWC1358.mta6.adelphia.net@moo.holy.cow> for ; Wed, 8 Oct 2003 19:51:49 -0400 Received: by moo.holy.cow (Postfix, from userid 1001) id EBD3FA372; Wed, 8 Oct 2003 19:55:13 -0400 (EDT) Date: Wed, 8 Oct 2003 19:55:13 -0400 From: parv To: freebsd-questions@freebsd.org Message-ID: <20031008235513.GB568@moo.holy.cow> Mail-Followup-To: freebsd-questions@freebsd.org References: <20031008062245.7ea8c9b1.b_cassidy@bellsouth.net> <1665244909.20031008101914@mygirlfriday.info> <20031008170340.GA42240@alexis.mi.celestial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031008170340.GA42240@alexis.mi.celestial.com> Subject: Re: vi and wrap text X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2003 23:51:48 -0000 in message <20031008170340.GA42240@alexis.mi.celestial.com>, wrote Bill Campbell thusly... > > Another one I use a lot in my ~.vimrc file is ``map {!}fmt'' So you add other arguments to pass to fmt (for carriage-return character is missing).(?) > which rewraps the current paragraph the cursor is in when I press > the F5 key. Do you find vim's internal wrapping functions to be inadequate? Just curious. In my case, "gq*" commands work just fine except when it comes to putting each line, of a text block, in center. Then i use... " center block with in 68 columns nmap E !}/usr/bin/fmt -c -68 > This maps the key sequence ``{!}fmt'' to the F5 key ``{'' top of > paragraph, ``!'' execute command ``}'' to bottom of paragraph, > ``fmt'' the command to execute. For anybody else who is still reading, 'E' works as described above except the formatting point is the line containing the current position of the cursor. - Parv --