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