What injury did you have? How did you solve it?
Getting better was partly just learning to not freak out about it—the situation was manageable and I wasn't going to have to give up my favorite activity that I'd spent so much of my life training for etc.
More exercise, better ergonomics, and taking breaks also helped. I've been practicing meditation for a couple years now too, and it's finally been getting to the point where I can use what I've learned to see and modify the bad mental patterns I established during 10 years of unpleasant computer use (including getting out of the feedback effect mentioned above).