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