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
You could select the lines then do a :'<,'>sort u if you don't care about the ordering. It will sort and remove duplicates.
:'<,'>sort u