I\'m trying to use VIM to remove a duplicate line in an XML file I created. (I can\'t recreate the file because the ID numbers will change.)
The file looks something
Are you trying to search and replace the line with nothing? You could try the g command instead:
g
:%g/search_expression_here/d
The d at the end tells it to delete the lines that match.
d
You may find more tips here.