(1)删除匹配“每行以pattern开头”的行

:g/^pattern/d

 (2)删除匹配“每行以pattern结尾”的行

:g/pattern$/d

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-07-21
相关资源
相似解决方案