` and press enter
***
**Changing ``
to ``**
* Place the cursor within the text `lorem ipsum`
* Invoke the Command Palette (`CTRL-SHIFT-P`/`CMD-SHIFT-P`)
* Select **Surround: change surround**
* Type the opening tag to replace: `` and press enter
* Type the replacement tag: ``
Note it's not necessary to specify attributes for the tag you're trying to match - by not specifying attributes you're telling the command to match that tag with no or any attributes. If you specify attributes only a tag with the exact attributes you specify will be matched.
We don't specify any attributes for the replacement `header` tag here, but if we wanted to that would work fine just as in the mailto example above.
***
### Regular expressions
Any search text in change/delete which is not a recognised pair or tag and is longer than a single character is treated as a regular expression.
### Multiple cursors/selections
Surround *should* support multiple cursors and selections fine, but this hasn't been tested very thoroughly as I don't really use them.
## Mappings
There are no default key mappings; functionality is accessed through the SublimeText command palette.
There's nothing to stop you from creating mappings in your `User/Default.sublime-keymap` file. The commands you can map are:
* `surround_selection`
* `surround_change`
* `surround_delete`
Vim-surround compatible mappings for [Vintage](http://www.sublimetext.com/docs/2/vintage.html) are available as a separate plugin here:
## Contributing
Go nuts. Clean, linted pull requests please :)
## Disclaimer
I have never written Python before in my life (apart from a one-line patch to another SublimeText plugin.) It's a great testament to the design of Python and the SublimeText 2 plugin API that I got this far. You have been warned.
## Prior art
There is (was? It doesn't seem to be on GitHub anymore...) another plugin with similar functionality, but I don't think it's very actively maintained and I was never able to get it to work properly.