skip to content
Alvin Lucillo

Replace all text

/ 1 min read

💻 Tech

In Vim, if you want to replace all occurrences of a text: :%s/TextToReplace/NewText/g

If you want to find the number of occurrences of a text: :%s/TextToReplace//gn