"With a view to" is a compound preposition that has a gerund as its object. You can use it to express purpose or when you are planning to do something in the future.
To express purpose, use "to" before a verb (infinitive). Use "for" before a noun. When talking about what someone does, don't use the "for + veb-ing" construction.