how to find and replace in vim code example
Example 1: search and replace vim
:%s/foo/bar/g
Example 2: vim replace in selection
:'<,'>s/foo/bar/g
Example 3: search and replace vim
:6,10s///g | 14,18&&
:%s/foo/bar/g
:'<,'>s/foo/bar/g
:6,10s///g | 14,18&&