Re: Remove old signature
Le 02-12-2008, à 15:57:06 +0100, Christian Ebert (blacktrash@xxxxxxx) a écrit :
> * steve on Tuesday, December 02, 2008 at 15:33:54 +0100
> > Le 02-12-2008, à 15:20:21 +0100, Christian Ebert (blacktrash@xxxxxxx) a
> > écrit :
> >> * steve on Tuesday, December 02, 2008 at 14:55:18 +0100
> >>> Any pointers on how to do that with vim ?
> >>
> >> On startup:
> >>
> >> silent! g/^> \?-- $/,$ delete
> >
> > Ok, I fell on one of those too. The question is how do I integrate that
> > line in .muttrc ?
> >
> > I tried :
> >
> > set editor="vim -c 'set textwidth=72' -c 'silent! g/^> \?-- $/,$
> > delete'"
> >
> > but it doesn't work, the old signature is still there. What did I do
> > wrong ?
>
> Probably you need to escape some of the "\"; you'd have to try.
I will.
> I prefer to have this (and more) in a function MailStart in
> ~/.vim/after/ftplugin/mail.vim, and then simply have
>
> set editor='vim -X -c "call MailStart()"'
>
> in my muttrc -- much easier to tweak or turn off in hooks as
> well. Saves me to try hundreds of escape combinations in muttrc.
> So I am also too lazy to do it for you ;-)
Ok thanks for the hints, I'll give them a try tomorrow, end of the day
for me now.
> btw. you don't need tw=72. That's already on by default for
> ft=mail.
ok, didn't know that.
Many thanks Christian for your help.
--
steve