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

:%s/old/new/g

Replace all occurrences of "old" with "new" in the entire file.

Syntax
$:%s/old/new/g
Examples
Examples
$:%s/error/fix/g
Typical use cases
Replace all
:%s/old/new/g
Note Search & Replace. Replaces all occurrences in the file.
Export