how to search and replace word in vi editor code example Example: vi replace all :%s/search_string/replacement_string/g