Vim 常用命令

116 阅读1分钟
  • 删除包含某关键字的一行
    :g/DROP TABLE IF EXISTS/d

  • 把latin1替换成utf8
    :%s/latin1/utf8/g