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

Re: Mutt now



* Philippe Marzouk (phil@ozigo.org) [030502 09:35]:
> On Fri, May 02, 2003 at 07:55:32AM -0500, Good Times wrote:
> > thanks for the advice on mutt and vim
> > 
> > i'm always looking for things to make my mutt better, the subscribe
> > stuff has "always been something i've meant to look more into"
> 
> so am I, that's why I gave it to you :-)
> 
> > 
> > i have a custom vimrc for mail so i added your suggestions, but my awk
> > is terrible, so i'm not even sure what that does 
> > 
> 
> It finds the last line of text to position the cursor there (very good
> question, I had to search in the docs a little to grok it).

Here's what I've got to do the same.  I think you'll find it cleaner and
more manageable.  I've a file ~/.vim/ftplugin/mail.vim .  It contains:

source $VIMRUNTIME/ftplugin/mail.vim
:/^$
:+

Well, more precisely, it doesn't go to the last line; it goes to one
line past the first blank line, which is just after the headers, which
is where you begin the body.  This is different than "the last line" in
the case that you have a signature at the bottom of your blank message.
When replying to a message, this is the place you want your attention to
be to begin trimming away the irrelevant parts of the previous, quoted
message and replying to the relevant parts.

Then, I don't have editor set in my muttrc.  It defaults to
/usr/bin/editor, which is vim.  Vim's filetype plugin feature is a great
thing.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"If we do not believe in freedom of speech for those we despise we do not
believe in it at all."  --Noam Chomsky

Attachment: pgpHw0Dpy8lMi.pgp
Description: PGP signature


Reply to: