Skip to main content

Questions about the usage of the global command `:g` which executes an Ex command (default ":p") on the lines within a range a where a pattern matches.

The syntax of the command is :

:[range]g[lobal]/{pattern}/[cmd]

See :h :global.