g/cat/z#.3
Vamos dissecar isso. :help :g informa que a última coisa é um comando , não um sinalizador (como os de :substitute ):
:[range]g[lobal]/{pattern}/[cmd]
Vamos tentar :help :z ; voilà:
:{range}z[+-^.=]{count} Display several lines of text surrounding the line
specified with {range}, or around the current line
if there is no {range}.
:{range}z#[+-^.=]{count}
Like ":z", but number the lines.
Assim, você obterá uma impressão numerada ( # ) de 3 linhas ao redor ( . ) da linha atual (que corresponde a cat ).