(Currently not fully documented, see the keymappings list for more.)
ms- Add surround characters
mr- Replace surround characters
md- Delete surround characters
ms acts on a selection, so select the text first and use
on the closest pairs found and selections are not required; use counts to act in outer pairs.
It can also act on multiple seletions (yay!). For example, to change every occurance of
%to select the whole file
sto split the selections on a search term
useand hit Enter
mr([to replace the parens with square brackets
Multiple characters are currently not supported, but planned.
ma- Select around the object (
mi- Select inside the object (
|Key after ||Textobject selected|
|Specified surround pairs|
Textobjects based on treesitter, like
class, etc are planned.