Vim search for a pattern and if occurs delete to end of line May 25, 2023 by Tarik would :%s/{pattern}.*// work?