substitute 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: search and replace vim
:6,10s///g | 14,18&&
:%s/foo/bar/g
%s/{the word you want to find}/{word to replaced with }/gc
:6,10s///g | 14,18&&