logo
  • 教程列表
  • SO官方文檔
  • vglobal 在全域性不匹配的行上執行命令
    • vpatternd
  1. StackOverflow 文件
  2. vim 教程
  3. vglobal 在全域性不匹配的行上執行命令
  4. vpatternd

vpatternd

Created: November-22, 2018

例:

> cat example.txt
  TODO: complete this
  NOT this
  NOT that
  TODO: Complete that

使用 vim 開啟 example.txt 並在 Ex 模式下鍵入:v/TODO/d。這將刪除所有不包含 TODO 模式的行。

StackOverflow 文件 StackOverflow 文件

  • vglobal 在全域性不匹配的行上執行命令

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明