I believe that to infinitive as a subject can be replaced by a gerund form, which is why
To get up early is good.
always has the same meaning as
Getting up early is good.
But a colleague of mine tells me this isn't always the case. I did not have a chance to have him elaborate on that. He cited the following sentence:
Neglecting others means ignoring
and only said that because of 'ignoring', you cannot use 'to neglect' instead of 'neglecting'.
Is he right? If so, why?