I am trying to search a text file for a certain pattern. If this pattern occurs then it means that the rest of the line is not needed and therefore can be deleted.
I ha
%s/\\(replay-pattern-later\\) pattern2/\1/gc
This will replay pattern1 but eliminate pattern2. Using "/gc" to apply globally (keep going) and prompt for each occurence.