I do not like the grep -v grep pattern. I think the regexp trick should be prefered:
:!ps axuw | grep [v]im | awk '{print $2}' | xargs kill -9
This can also be merged in the awk command: :!ps axuw | awk '/[v]im/{print $2}' | xargs kill -9