The following "gain a nonspecific card" cards either outright ban or nastily restrict victory card gaining:
Horn of Plenty (restricted)
Jester
Haggler
Talisman
And these "gain a nonspecific card" cards don't ban it:
Workshop
Feast
Remodel
Ironworks
Saboteur
Upgrade
Smugglers
Expand
Forge
Remake
Develop
Farmland
Governor
Masquerade
Swindler
Ambassador
The latter list has:
10 cards: Remodel and its MANY variants (including 2 attacks) - i.e. any card that makes you trash one or more of your own cards and gain one or more cards based on the value of the trashed ones.
2 cards: enemies making you gain cards: Masquerade, Ambassador
4 cards: "gain a card costing up to static $": Workshop, Ironworks, Feast, Smugglers.
What seems to make the restricted/banned list different is that 3 of these (Horn of Plenty, Jester, Haggler) let you gain a card of unbounded value without sacrificing a card of comparable value.
Talisman is more interesting: it is a Workshop variant ("gain a card costing up to static $") but unlike the other 4 Workshop cards it restricts victories. Talisman also comes in a chronologically later expansion - I think at some point DonaldX changed his mind about these because of the existance of Bridge and its variants, which would let you use Workshops to gain a card of unbounded value.
So the conclusion is that if your cardgain isn't based on trashing your own cards, it should - according to DonaldX's design - exclude VPs.