managed
v.v. to succeed in doing something difficult, especially after trying hard. You use this when you want to say you were able to finish a task despite problems.
v. to succeed in accomplishing a task or goal, particularly one that presents significant difficulty or requires effort. Often functions as a catenative verb followed by a 'to'-infinitive.
She managed to finish the report before the deadline.
Despite the heavy snow and traffic delays, we managed to arrive at the airport just in time for our flight.
The small startup managed to secure a second round of funding even though the economic climate was increasingly hostile to new tech ventures.
When followed by another action, it requires the 'to'-infinitive ('managed to do') rather than the gerund.
I managed finishing the workI managed to finish the workManaged is followed by a 'to'-infinitive, not a gerund.