Is there a free app like Sublime Text 2 on iPad?
Take a look at Textastic.

I've tried many others Code, Diet Coda, etc. While they all have some decent features, nothing is quite up to par yet all around in comparison to Textastic in my opinion (especially if you like Sublime Text).