删除包含特定字符的行: 1. 全局删除匹配到的行 :g/pattern/d 2. 删除第1-10行里的匹配到的行 :1,10g/pattern/d 3. 删除不包含指定字符的行 :v/pattern/d 或 :g!/pattern/d