| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.