Linux Terminal Glossary
›
Vim/Neovim
:%s/old/new/g
Category:
Vim/Neovim
:%s/old/new/g
Copy command
Replace all occurrences throughout the entire file
Replaces all occurrences of 'old' with 'new' throughout the entire file. % means 'all lines'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.