The convincing win already puts Barcelona two points clear of Real Madrid, who drew with Valencia.
“It has been a difficult time and it is nice to be back,” Villa told Spanish television.
“I am pleased to be able to say I can forget about the injury now. I have had five weeks training at the maximum level but my body still struggles to reach the levels necessary to play more minutes.
“I’ll keep on working until I can eventually play a full game again.”