命令:

g/pattern/d

 

如,删除包含字母 hell 的行

g/hell/d

 


 


删除 匹配指定字符的行(未验证,有需要的朋友可以试一下)

v/pattern/d
g!/pattern/d

 

 

 

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2023-03-25
  • 2021-09-18
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案