Bastien Dejean wrote:
Hi,
I'm trying to removed some of the default mutt headers since there's no
facility for doing so inside mutt. Hence the following:
autocmd FileType mail :%s/^\(Reply-To\|Bcc\): \n//e
The only problem is that I get the "Press ENTER or type command to
continue" prompt.
Appending 'silent' before the substitution doesn't help.
I suspect that you're actually not getting any matches; ie. do you
actually get "Bcc: <newline>" lines?
Anyway, be that as it may, please try:
au FileType mail :sil! %s/^\(Reply-To\|Bcc\): \n//e
(note the "!" trailing the :sil)
or
au FileType mail :sil! v/^\(Reply-To\|Bcc\): $/d
Regards,
Chip Campbell
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php