Re: Replying to Email / Removing previous signature

2008-03-08 Thread Chris Bannister
On Tue, Mar 04, 2008 at 07:51:08AM +0100, Eyolf Østrem wrote: > On 04.03.2008 (15:34), Chris Bannister wrote: > > So in your .muttrc do you have something like: > > > > set editor ="vim -u mutt-vimrc" > > > > or ...? > > > > The -u option skips all other initialisation, which would mean > >

Re: Replying to Email / Removing previous signature

2008-03-03 Thread Eyolf Østrem
On 04.03.2008 (15:34), Chris Bannister wrote: > So in your .muttrc do you have something like: > > set editor ="vim -u mutt-vimrc" > > or ...? > > The -u option skips all other initialisation, which would mean > options like 'textwidth= ' would be lost. Yes, something like that. I've been

Re: Replying to Email / Removing previous signature

2008-03-03 Thread Chris Bannister
On Sun, Mar 02, 2008 at 02:51:32PM +0100, Eyolf Østrem wrote: > > > On 27.02.2008 (17:37), Breen Mullins wrote: > > Since my suggested mapping > > map ,ds :.,/^-- $/-1dO > > > > only makes sense if I'm editing a mail, I pulled it from my .vimrc > > and dropped it into ~/.vim/after/syntax/mail.vi

Re: Replying to Email / Removing previous signature

2008-03-02 Thread Eyolf Østrem
On 27.02.2008 (17:37), Breen Mullins wrote: > Since my suggested mapping > map ,ds :.,/^-- $/-1dO > > only makes sense if I'm editing a mail, I pulled it from my .vimrc > and dropped it into ~/.vim/after/syntax/mail.vim . For what it's worth, I have the following in my mutt-vimrc file: imap ff

Re: Replying to Email / Removing previous signature

2008-02-27 Thread Breen Mullins
* Kyle Wheeler <[EMAIL PROTECTED]> [2008-02-18 14:22 -0600]: Comma repeats the last f/t/F/T operation in the opposite direction. I don't know why you'd start macros with it either. :) Well, that's a good point even if I rarely use the reverse-sense search. Since my suggested mapping ma

Re: Replying to Email / Removing previous signature

2008-02-20 Thread Joseph
On 02/20/08, Gary Johnson wrote: > On 2008-02-20, Joseph <[EMAIL PROTECTED]> wrote: > > On 02/18/08, Kyle Wheeler wrote: > > > A macro to remove all two-line things would be something like this: > > > > > > :%s/\n\n/\r/ > > > > > > You can add it to your $editor setting (+%s/\n\n/\r/) or you

Re: Replying to Email / Removing previous signature

2008-02-20 Thread Gary Johnson
On 2008-02-20, Joseph <[EMAIL PROTECTED]> wrote: > On 02/18/08, Kyle Wheeler wrote: > > A macro to remove all two-line things would be something like this: > > > > :%s/\n\n/\r/ > > > > You can add it to your $editor setting (+%s/\n\n/\r/) or you can make > > a key mapping out of it (map ,oe

Re: Replying to Email / Removing previous signature

2008-02-20 Thread Joseph
On 02/18/08, Kyle Wheeler wrote: > A macro to remove all two-line things would be something like this: > > :%s/\n\n/\r/ > > You can add it to your $editor setting (+%s/\n\n/\r/) or you can make > a key mapping out of it (map ,oe :%s/\n\n/\r/), whichever you > prefer. > What I would like

Re: Replying to Email / Removing previous signature

2008-02-18 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday, February 18 at 11:48 AM, quoth Breen Mullins: >> For others who may want to try this, I had to make some changes to >> get it to work. > > You changed my definition. I actually do type comma-d-s to trim the > message. (All of my macros te

Re: Replying to Email / Removing previous signature

2008-02-18 Thread Breen Mullins
* Joseph <[EMAIL PROTECTED]> [2008-02-18 14:33 -0500]: Wow, that is really slick. But not original to me - I snarfed something similar a long time ago... For others who may want to try this, I had to make some changes to get it to work. You changed my definition. I actually do type comma-d

Re: Replying to Email / Removing previous signature

2008-02-18 Thread Joseph
On 02/18/08, Breen Mullins wrote: > * Joseph <[EMAIL PROTECTED]> [2008-02-18 13:08 -0500]: > >> When replying to an email that you sent earlier, how would you go about >> removing the previous signature? > > I use vim as my editor - I have a macro defined in vimrc > > map ,ds :.,/^-- $/-1dO > > (d

Re: Replying to Email / Removing previous signature

2008-02-18 Thread Michael Kjorling
On 18 Feb 2008 19:05 +, by [EMAIL PROTECTED] (Michael Kjorling): > Run a message through this awk script before passing it to your > editor. (Set $editor to a wrapper script.) Sorry, I missed one pretty important detail. This is how you invoke it: awk -f awkfile OUTFILE=$outfname $infname --

Re: Replying to Email / Removing previous signature

2008-02-18 Thread Michael Kjorling
On 18 Feb 2008 13:08 -0500, by [EMAIL PROTECTED] (Joseph): > When replying to an email that you sent earlier, how would you go about > removing the previous signature? Run a message through this awk script before passing it to your editor. (Set $editor to a wrapper script.) ** cut ** {if ($0 ~ /^

Re: Replying to Email / Removing previous signature

2008-02-18 Thread Breen Mullins
* Joseph <[EMAIL PROTECTED]> [2008-02-18 13:08 -0500]: When replying to an email that you sent earlier, how would you go about removing the previous signature? I use vim as my editor - I have a macro defined in vimrc map ,ds :.,/^-- $/-1dO (ds for delete-to-sigdashes). It's not automatic, b

Replying to Email / Removing previous signature

2008-02-18 Thread Joseph
When replying to an email that you sent earlier, how would you go about removing the previous signature? Some times you communicate to someone and end up with a lot of copies of old signatures. Thunderbird at least some of the time detects that your signature is already there and removes it for yo