Vim
:%s/old/new/g
Replace all old with new throughout file.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verifiziert: 2025-10-07
Syntax
$:%s/old/new/g
Beispiele
$:%s/error/fix/g
Typische Anwendungsfälle
?
Standardverwendung
:%s/old/new/g --help
Hinweis
Search & Replace. Ersetzt alle Vorkommen in der Datei.
Export