* steve on Tuesday, December 02, 2008 at 15:33:54 +0100 > Le 02-12-2008, à 15:20:21 +0100, Christian Ebert ([EMAIL PROTECTED]) 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 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 ;-) btw. you don't need tw=72. That's already on by default for ft=mail. c -- \black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html
