vim

Posted by zz on December 23, 2019

vim常用操作

:g/pattern/d 全局删除匹配到的行
:g!/pattern/d 全局删除未匹配到的行
:v/pattern/d 全局删除未匹配到的行