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 > > In the FAQ, it's written that mutt cannot strip automaticaly signatures > > since this should be the editor's job (vim in my case). But why so ? > > Yet another option ... Ok ... > > 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 ? > or manually: > > nnoremap <buffer> <LocalLeader>qs :/^> \?-- $/,/^-- $/-d<Bar>noh<CR> Still a lot too complicated for me .. > eg. in ~/.vim/after/ftplugin/mail.vim > > Adjust to taste. Thanks for your help. -- Steve