vim replace all words code example
Example 1: vim replace command
:%s/foo/bar/g
Example 2: replace all vim
:%s/foo/bar/g
Example 3: linux vim replace all
%s/{the word you want to find}/{word to replaced with }/gc
:%s/foo/bar/g
:%s/foo/bar/g
%s/{the word you want to find}/{word to replaced with }/gc