vim command for replace in g some charatcer at end code example Example: search and replace vim :%s/foo/bar/g