vim : 删除不包含某字符的行

来源:互联网 发布:矩阵切换系统 编辑:程序博客网 时间:2024/06/02 13:13

zz : http://hi.baidu.com/showland/item/2344ef43939673e11381dac1

g/pattern/d 是找到pattern, 删之

v/pattern/d 是找到非pattern,删之



zz : http://bbs.chinaunix.net/thread-1098609-1-1.html


ook3016a@dlm.mabuchi-motor.co.jp
helloworld
qingfeng_ma@dachan.com.cn
zongbuban@126.com
kongxj@dlut.edu.cn
lj@dhc.com.cn
adfsadflkjasf
sun@yidagroup.com
dlsyhgxh@163.com
dushy@pendal.com.cn
lijian@dsic.com.cn
guangfu@huangong.com.cn
cpct@dayang.net
fsklee@dagoco.com
wuhougang@zhangzidao.com
bingshan@bingshan.com
xhw_lh@dl.gov.cn
hgjt_zhoulw@sina.com.cn
kai.mahnke@tagal.com.cn
xubin-888@vip.sina.com.c

ex command
:v/@/d

0 0