removing multiple CR with vim

i’m using mutt email client, and my default editor is vim.

So, when i reply messages providing from crap clients like Outlook with default config that send messages in HTML, the body of my message looks like this :

on Mon, July the 9th, 9:49PM, Mister NO BRAIN wrote :

> hello,
>
>
>  blablah…

so, i use the power of vim to delete those multiples “> followed by carriage-return” :

in command mode of vim :
:%s/>  *$\n>/>/g

Tags: vim mutt sed CR