Is there an opposite of :g in vim?

I think there is a inversion within VIM as,

:g!/foo/d

or, like the grep command (below),

:v/foo/d

If you are ready to go to the shell prompt,

grep -v foo filename.txt > new.txt

will do this