Both forms are accepted, although if you're still learning, and didn't make it a habit, the '-ing' form is less ambiguous.
The problem is that the 'verb to verb' in some contexts may mean two different things.
I stopped smoking
It means unambiguously that I don't smoke (cigarettes or whatever) any more.
I was raking dry leaves all morning, and while doing it, I came to a life-changing decision. I stopped to smoke, and decided to quit my current job and take up a hobby.
And here we don't know: was the decision to stop smoking? Or - conversely - he stopped raking leaves, in order to smoke a cigarette, and then, while smoking, came up with the remaining decisions.
In other words, the negatives - 'stop', 'pause', 'cease', etc connected with 'to verb' may relate either to stopping/pausing/etc that specific activity, or pausing a previous activity, in order to start the given activity!
The '-ing' bears no such ambiguity and is equally valid as a grammar construct, so if you have no specific reasons for writing otherwise, '-ing' is safer.
Either is correct, but this form is usually constructed with a parallel structure.
I prefer living with someone rather than living alone
However, when the main clause is written with a to-infinitival verb, we usually use a bare-infinitival verb after rather than.
I prefer to live with someone rather than live alone
It's also possible to use the -ing form, especially when the rather-than structure precedes the sentence.
Rather than living alone, I prefer to live with someone.
Reference
Practical English Usage(PEU) Second Edition by Michael Swan
Best Answer
It's fine to use either the infinitive or the gerund when making lists of things, but good style recommends you use the same for all the elements of the list:
So in your example, just make sure all the elements have the same form:
You can also just list them as simple nouns (the related verbs are implied):
Side note: it's not logical to say that you dream of "marrying a nice wife" because, at the time you marry her, she's not your "wife". Instead you say "I want to marry a nice girl/woman (and settle down, have kids, etc.)". However, it is fine to talk about marrying your wife in the past:
or