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 have tried using the following commands, but so far have been unsuccessful.
:%s/{pattern}/d$
:g/{pattern}/d$
If anyone has any suggestions they would be greatly appreciated
thanks