eric@lucii.org on Wed, 25 Sep 2002 12:04:33 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] vim question


Thanks to you and Adam for your responses!

I had to do:

!}fmt -w 60 

to get the desired effect.

The bloat of Vim has never bothered me but it's feature set has
really been helpful.  I'm still learning.  
Of course there's emacs(!)

Eric

On Tue, Sep 24, 2002 at 11:38:52PM -0400, gabriel rosenkoetter wrote:
> On Mon, Sep 23, 2002 at 10:27:54PM -0400, eric@lucii.org wrote:
> > I use the 'gqip' sequence to reformat paragraphs - currently to 80
> > columns.  I'd like it to default to 72 or even 60 in some cases.
> > Is there a way to do that in vim? 
> 
> Vim's gq commands are cute (and Adam's pointer to the textwidth
> setting is probably what you want), but I'd point out that this is
> functionality that the editor itself doesn't need on a POSIX system.
> 
> I format paragraphs in plain, vanilla vi(1) (okay, fine, so it's
> actually nvi, since the real vi source is encumbered, whatever) by
> issuing:
> 
> !}fmt
> 
> You can give fmt(1) an argument for both its goal and maximum lines,
> so:
> 
> !}fmt 55 60
> 
> will shoot for 55 columns, and inhabit no more than 60.
> 
> No muss, no fuss, no Vim bloat...
> 
> -- 
> gabriel rosenkoetter
> gr@eclipsed.net



-- 
# Eric Allan Lucas 
#------------------------------------------------------------------------
#   Support Ken Krawchuk - Libertarian for Governor of Pennsylvania!
# Find out how YOU can help!   ->                     http://www.kenk.org
# Support liberty              -> http://www.lppa.org + http://www.lp.org
# Learn how to speak out       ->  http://www.libertariantoastmasters.org
#------------------------------------------------------------------------
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug