I have a large html file in which I need to search and replace over 2000 occurrences of specific string. I could do it manually but I'm sure there is a power Vim search and replace command that could do it.
I have footnotes that I need to replace a specific portion of the hyperlink text.
The footnote link is formatted liked this:
There are over 2000 footnotes each labelled 1-2020. I would like to remove the anchor text (2020 in the example above) and replace it with a *. I would like to leave the href text '#footnote-2020' as it is in order to preserve the link.
Are there any power Vim users who could come up with a quick search and replace command?