I'm trying to achieve a simple substitution on vim but can't get it right. I need to remove, on an entire file, all the lines that match a pattern. The pattern is "something*", meaning "something" followed by anything until the end of the line.
Я безуспешно пытался :% s / pattern * \ n // g
и :% s / pattern * $ // g
.
Есть идеи?
Ура!