vim: replace a line pattern by a no line

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 . Есть идеи?

Ура!

7
задан brafales 5 May 2011 в 08:45
поделиться