Term: all in vanity
Example: he announced all in vanity that he would outwit all his rivals
Definition: proudly