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
would :%s/{pattern}.*// work?
:%s/{pattern}.*//