title: vim: replace a line pattern by a no line
body: <p>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.
  I tried <code>:%s/pattern*\n//g</code> and <code>:%s/pattern*$//g</code>without success.
  Any ideas?</p>
  
  <p>Cheers!</p>