substitute text vim code example
Example 1: linux vim replace all
%s/{the word you want to find}/{word to replaced with }/gc
Example 2: search and replace vim
:6,10s/<search_string>/<replace_string>/g | 14,18&&
%s/{the word you want to find}/{word to replaced with }/gc
:6,10s/<search_string>/<replace_string>/g | 14,18&&