vim replace selected text with yanked code example Example: vim replace in selection :'<,'>s/foo/bar/g