vi find and replace all code example
Example 1: vi replace all
:%s/search_string/replacement_string/g
Example 2: linux vim replace all
%s/{the word you want to find}/{word to replaced with }/gc
:%s/search_string/replacement_string/g
%s/{the word you want to find}/{word to replaced with }/gc