vim select find and change same words code example Example: vim replace in selection :'<,'>s/foo/bar/g