The following shows how to replicate some of Surround's features if you don't happen to have it installed.
NOTE: We only dealt with the simplest cases, here, and the convoluted nature of some of these commands shows how well designed and useful that plugin is. And let's not talk about all the corner cases it handles.
Install it, it's worth it.