Re:Intermediate Vim
by chongli on Wednesday May 01, 2019 @08:52AM
(#19796566)
For that same example, you can accomplish the job in one substitute command:
The & special character gets replaced with the whole matched pattern.
[ Parent
| on HN ]
How do you escape the & character? I have been bit by this (not escaping &) a few times but never enough to have found the answer.