I'm trying to automatically delete useless headers when calling vim from mutt. I've tried running vim with the following command.vim +'0,/^$/g/^\(Cc\|Bcc\|Reply-To\): $/d' /tmp/testHowever, I get the following feedback when it starts./tmp/test 11L, 60C3 fewer linesPress ENTER or type command to continueFor testing purposes, if I remove the range and g (i.e. 0,/^$/g), the command is as follows, and I do not get the additional prompt.vim +'g/^\(Cc\|Bcc\|Reply-To\): $/d' /tmp/testWhy do I get the prompt for the first command? How can I suppress it?EditI seem to only get the prompt when the command deletes three lines, e.g. when /tmp/test consists of the following.To: FooCc: Bcc: Reply-To: foobarHowever, when there are only two lines deleted, I get no prompt, e.g. when /tmp/test consists of the following.To: FooCc: BarBcc: Reply-To: foobar
How can I suppress feedback when calling vim with certain commands?
command line;invocation
Use :silent to suppress the output of the command.vim +'silent 0,/^$/g/^\(Cc\|Bcc\|Reply-To\): $/d' /tmp/test