vile
[Top][All Lists]
Advanced

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

Re: [vile] Some issues/features


From: Chris G
Subject: Re: [vile] Some issues/features
Date: Wed, 29 Sep 2010 14:52:26 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Sep 29, 2010 at 11:37:03PM +1000, Brendan O'Dea wrote:
> On 29 September 2010 19:52, Paul van Tilburg <address@hidden> wrote:
> > On Wed, Sep 29, 2010 at 10:23:53AM +0100, Chris G wrote:
> >> I used to use wrapmargin to limit my E-Mails to 72 columns but now
> >> (for some good reason that I can't remember, it was discussed here a
> >> *long* time ago) I use fillcol=70 and wrapmargin=0.
> >
> > But, if wrapmargin is set to 0, no wrapping is applied while you type,
> > right?  At least, not for me, I have just tried it.  I always have to
> > reformat afterwards in this case.
> 
> vile has two different wrapping mechanisms, one derived from
> traditional vi: wrapmargin, and one from emacs: fillcol.  As noted in
> the help file, you shouldn't really use both of these at the same
> time.
> 
> wrapmargin is less useful as it is only respected when wrapping
> inserted text (not re-formatting), and at least traditionally it
> didn't work terribly well with variable sized windows since the value
> was given as the number of characters from the right margin at which
> to wrap text when inserting.
> 
Ah, of course, yes, that's why I stopped using it because I use
different sized terminal windows but I want a fixed text width when
I'm writing.


> fillcol specifies the text width for automatically wrapping inserted
> text (when wrapwords is set) and also to use when reformatting text.
> 
> I would recommend leaving wrapmargin unset, or explicitly setting it
> to 0, then enabling wrapwords and setting fillcol to your desired
> value.
> 
> Something like this should do what you want:
> 
>   set wrapmargin=0
>   set fillcol=72 wrapwords
> 
That extra 'wrapwords' is new to me, I'll try it.

-- 
Chris Green



reply via email to

[Prev in Thread] Current Thread [Next in Thread]