mutt and vim settings

This is a discussion on mutt and vim settings within the Mutt forums in Other Technologies category; I am using Mutt for the first time and would appreciate a bit of advice on using vim as an external editor. What settings are people using when using vim in this way? I was keen on the follwoing: 1. Line length 72 characters('+set tw=72') 2. Ability to modify headers?? But I am not sure of the correct syntax for this, and I am sure there are extra settings that could be used. Thanks for any help, Andrew -- Andrew's Corner http://people.aapt.net.au/~adjlstrong/homer.html...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-25-2007, 04:16 AM
andrew
Guest
 
Default mutt and vim settings

I am using Mutt for the first time and would appreciate a bit of
advice on using vim as an external editor. What settings are people
using when using vim in this way? I was keen on the follwoing:

1. Line length 72 characters('+set tw=72')
2. Ability to modify headers??

But I am not sure of the correct syntax for this, and I am sure there
are extra settings that could be used.

Thanks for any help,

Andrew

--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Reply With Quote
  #2  
Old 06-25-2007, 04:48 AM
andrew
Guest
 
Default Re: mutt and vim settings

On 2007-06-25, andrew <nospam@andrew.invalid> wrote:
> I am using Mutt for the first time and would appreciate a bit of
> advice on using vim as an external editor. What settings are people
> using when using vim in this way? I was keen on the follwoing:
>
> 1. Line length 72 characters('+set tw=72')
> 2. Ability to modify headers??


OK I have solved this part:

# option "+/^$" puts cursor in first blank line
set editor="vim -c 'set tw=70 et' '+/^$'"
set edit_headers

Now: how do I strip out the signature in replies?

Andrew


--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Reply With Quote
  #3  
Old 06-25-2007, 10:38 AM
=?iso-8859-1?b?Qmr2cm4=?= Steinbrink
Guest
 
Default Re: mutt and vim settings

On Mon, 25 Jun 2007 08:48:56 +0000, andrew wrote:

> On 2007-06-25, andrew <nospam@andrew.invalid> wrote:
>> I am using Mutt for the first time and would appreciate a bit of advice
>> on using vim as an external editor. What settings are people using when
>> using vim in this way? I was keen on the follwoing:
>>
>> 1. Line length 72 characters('+set tw=72')
>> 2. Ability to modify headers??

>
> OK I have solved this part:
>
> # option "+/^$" puts cursor in first blank line
> set editor="vim -c 'set tw=70 et' '+/^$'"


I'd suggest you put those options into a filetype script. There's
mail.vim which is included with vim and includes a few nice settings, and
of course you can extend it to your liking.

> set edit_headers
>
> Now: how do I strip out the signature in replies?


silent! /^> --\s*$/,$d

That should do the trick.

Björn
Reply With Quote
  #4  
Old 06-25-2007, 07:33 PM
andrew
Guest
 
Default Re: mutt and vim settings

On 2007-06-25, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:
> On Mon, 25 Jun 2007 08:48:56 +0000, andrew wrote:
>
>> On 2007-06-25, andrew <nospam@andrew.invalid> wrote:
>>> I am using Mutt for the first time and would appreciate a bit of advice
>>> on using vim as an external editor. What settings are people using when
>>> using vim in this way? I was keen on the follwoing:
>>>
>>> 1. Line length 72 characters('+set tw=72')
>>> 2. Ability to modify headers??


[...]

>
> I'd suggest you put those options into a filetype script. There's
> mail.vim which is included with vim and includes a few nice settings, and
> of course you can extend it to your liking.


Thanks for your very helpful reply. I have had a _proper_ look at my
system and as you mentioned there are several sample .muttrc files not
only packaged with vim but also with mutt itself. A rain-filled long
weekend woulc be required to look at these properly I suspect :-)

Andrew

--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:25 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.