>_ linuxcommand.dev
Startseite :%s/old/new/gc
Vim

:%s/old/new/gc

Replace all occurrences of "old" with "new" in the file, prompting for confirmation before each replacement.

Syntax
$:%s/old/new/gc
Examples
Examples
$:%s/error/fix/gc
Typical use cases
Replace all with confirmation
:%s/old/new/gc
Note Search & Replace. Replaces with confirmation.
Export