$ 0 0 これでいけます:g/tes/d このようなテキストがある場合hoge test hoge test hoge このようになりますhoge hoge hoge 正規表現を駆使すれば複雑な行の削除もできますね