vim substitue function few lines code example
Example 1: search and replace vim
:6,10s/<search_string>/<replace_string>/g | 14,18&&
Example 2: search and replace vim forward slash
:%s/<dog\/>/<cat\\>
:6,10s/<search_string>/<replace_string>/g | 14,18&&
:%s/<dog\/>/<cat\\>