如果您尝试删除包含该术语的每一行,console您可以使用
:global/console/d
全局命令的格式为
:[range]g[lobal]/{pattern}/[cmd]
Execute the Ex command [cmd] (default ":p") on the
lines within [range] where {pattern} matches.
有关该global命令的更多信息,请使用:h global. 获取所有可能[cmd]使用值的列表:h ex-cmd。