PracticalVim Tip97 - yszheda/wiki GitHub Wiki
Format of `:global`:
- The default range for the `:global` command is the entire file (`%`).
- The `{pattern}` field integrates with search history → we can leave it blank and Vim will automatically use the current search pattern.
- The `[cmd]` could be any Ex command except for another `:global` command.
- `:global!`/`:vglobal`: invert the behavior of the `:global` command.