Search and replace in the whole file

Replace all matches and confirm each one (c)

:%s/old/new/gc

tool
vim10 commands
tags
vimlinux

More vim commands

all 10 vim commands