The comments that you have received ( -ing is habitual, -ing is actual, to is potential) are a generally accurate observation. In individual cases, however, they do not necessarily hold true, and yours is a case in point-- I like eating ice cream and I like to eat ice cream , devoid as they are of fuller context (that is, while sitting here at my computer reading your post and with the nearest ice cream a couple of blocks away at the convenience store), have the same meaning to my mind.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.