:%s/old/new/gc

Category: Vim/Neovim

:%s/old/new/gc

Replace all with confirmation prompt for each

Replaces all occurrences but asks for confirmation before each one. c means 'confirm'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.