Review every replacement
:%s/colour/color/gc
Example
Normal mode. Line: colour palette; colour wheel.
colour palette; colour wheel- :%s/colour/color/gc<CR> Confirmation prompt · first colour
- y Replace first match · color palette; colour wheel
- n Skip second match · color palette; colour wheel
color palette; colour wheelDetails & Vim help
Ask before replacing each matching occurrence.
Keep a broad replacement under manual control.
The example answers y then n. % covers every line, g covers all matches per line, and c asks for confirmation. Vim patterns are not literal strings.
Try it in Vim
- Run :%s/colour/color/gc<CR>.
- At each prompt use y to replace or n to skip.
- Use q to stop; a accepts all remaining matches.