PracticalVim Tip92 - yszheda/wiki GitHub Wiki
- repeat the command across the entire file just by pressing `g&`
- equivalent to: repeat the last substitute command using the same flags, the same replacement string, and the current search pattern, but use the `%` range.
- `gv` command enables Visual mode and rehighlights the last selection.
- `:&&`
* Second `&` indicates that the flags from the previous :s command should be reused.
- `&` command is a synonym for `:s`, which repeats the last substitution.
- `:&&`: acts on the current line
- `:'<,'>&&` acts on the visual selection
- `:%&&` acts on the entire file.
- `g&` is a shortcut for `:%&&`
preserves flags for the `&` command: