Vim
:%s/old/new/gc
Replace all old with new throughout file with confirmations.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verifiziert: 2025-10-07
Syntax
$:%s/old/new/gc
Beispiele
$:%s/error/fix/gc
Typische Anwendungsfälle
?
Standardverwendung
:%s/old/new/gc --help
Hinweis
Search & Replace. Ersetzt mit Bestätigung.
Export