vim how to replace everything inside selection code example Example: vim replace in selection :'<,'>s/foo/bar/g