Hello Daxi
The choice between an infinitive and a gerund for a given verb is an issue repeatedly discussed here.
My rough rules are as follows:
1. Time Relations between V1 and V2
"V1 to V2" is preferably used when the activity V2 comes after the activity V1 in the time relation.
(EX) He promised to teach me English.
(EX) I never thought to see you here.
(EX) I hope to see you again.
In the case of "V1 V2-ing", the activity V2 takes place before the activity V1 or the time relation is neutral (i.e., V1 and V2 occur simultaneously).
(EX) He admitted making mistakes in the reply.
(EX) Can you remember seeing me a decade ago?
(EX) She enjoys learning English
(EX) He practices flying a glider every weekend.
2. Positiveness/Negativeness
When V1 is a verb connoting positive attitudes toward the V2 activity, V2 tends to take an infinitival form.
(EX) We agreed to go skiing
(EX) I want to have a date with Marie Antoinette.
(EX) We aim to please our customers
When V1 is a verb connoting negative attitudes toward the V2 activity, V2 tends to take a gerundive form.
(EX) He avoided getting involved in the acceded.
(EX) Somehow he escaped being punished.
(EX) I couldn't help laughing.
3. Subject
The subject "To V2" is usually the same as that of V1 except when the V2's subject is explicitly mentioned. But in the construct "Someone V1 V2-ing", the subject of V2 can be a different person or indefinite persons.
(EX) She began to smoke / She began smoking.
(EX) She didn't allow us to smoke there. / She didn't allow smoking in her room.
Some verbs take only infinitives and some only gerunds. But there are not a few verbs which can take both. These ambivalent verbs can be classed into two groups:
(1) Group 1 : The sense does not differ between with an infinitive and with a gerund.
(attempt, intend, propose, plan), (hate, like, love, prefer, dislike), (begin, start, continue, cease), (stop), (bear, endure, forbear, stand), (neglect, omit)
(2) Group 2 : The sense or the usage differs between with an infinitive and with a gerund.
(forget, remember, regret, try), (need, require, dedserve)
paco