从文档中,:global
命令的语法是:
:[range]g[lobal]/{pattern}/[cmd]
Execute the Ex command [cmd] (default ":p") on the
lines within [range] where {pattern} matches.
我也遇到过这样的用法:g
:
:g/apples/+1,/peaches/ s/^/# /g
:g/start/+1,$ sort n
/apples/+1,/peaches/
这里属于吗{pattern}
?此语法记录在哪里?