Based on the information provided by adzenith about modifying the cursor location using .sel(), I've made another plugin that I find myself using all the time, wrap each in tag. So if you have the following text:
And select all the lines and run the function you'll get:
with all the s selected ready for you to overtype with whatever tag you prefer (this is based on TextMate functionality, to help my transition!). You will have to click (or press Escape) to return the cursor to a single position (unless there's another method I don't know about...).
Again, if this is duplicating another plugin/built-in function please let me know! I'd always rather use original functions, than plugins!
You can get it here: