how to replace multiple words in vim code example
Example 1: vim replace command
:%s/foo/bar/g
Example 2: linux vim replace all
%s/{the word you want to find}/{word to replaced with }/gc
Example 3: vim replace multiple lines
# Replace all instances of foo with bar
:%s/foo/bar/g
# Replace all instances of foo in lines 6 to 10 inclusive with bar
:6,10s/foo/bar/g