I'm currently working on a file that has a lot of duplicate lines splattered across the file and I'm trying to remove those duplicates. I tried using
\1\2 which is working okay. Then I realised that there'll be some lines not caught by that so I captured it in a macro. But now I'm stuck running that several times and not knowing if/when it'll ever be done.
I get the feeling I should be able to use some sort of function to do this but I'm not entirely sure how. What should I be doing instead?