vim find and replace in line code example
Example 1: search and replace vim
:%s/foo/bar/g
Example 2: vim replace command
:%s/foo/bar/g
Example 3: search and replace vim
:6,10s/<search_string>/<replace_string>/g | 14,18&&
:%s/foo/bar/g
:%s/foo/bar/g
:6,10s/<search_string>/<replace_string>/g | 14,18&&