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

Re: vim linebreaks in Mutt



* Andrei Popescu (andreimpopescu@gmail.com) wrote:
> On Sat,01.Aug.09, 21:56:46, Rob Owens wrote:
> > What's the proper setting to get good line breaks in Mutt (using vim),
> > without manually hitting the enter key?  (So that this paragraph, for
> > instance, is not one long line of text, but rather several shorter lines of
> > text).
> > 
> > I currently have this in .muttrc:
> > 
> > set editor="vim -c 'set wrapmargin=5'"
> 
> If filetype plugins are active[1] vim should "know" you are editing a 
> mail and will already set textwidth=72 and use also some syntax coloring 
> (ex. quotes and your .sig will show in a different color). 
> 
[snip]
> 
> Regards,
> Andrei

As per Andrei's suggestion, you can explicitly set this in your .muttrc
as follows, which is what I do. 

set editor="vim +':set textwidth=72'"

I suspect the following will work aswell if you want to also keep the
wrapmargin setting.

set editor="vim +':set textwidth=72' +':set wrapmargin=5'"   

Regards,
Jaime


Reply to: