In vim we have the
:substitute command that searches for a text pattern and replaces it with a text string.
How does one handle a text pattern with punctuation in it?
Minimum working example: the text pattern
$S(\R^2)$ has to be replaced with the text string
Edit: How do we also account for the fact that the text pattern can be inside another text pattern?