This is what I am attempting to do:
%s/Article/<h2>Article</h2>/gi
Unfortunately, every time i execute this command through my vim editor, it says:
Trailing characters
To mitigate the above, I executed the following:
%s/\s*\r*$//
And it executes successfully, but when I go back to the original search and replace command, it again reads 'Trailing characters' and does not execute the search and replace operation.
What am I doing wrong here?