search and replace withing selection vim code example Example: vim replace in selection :'<,'>s/foo/bar/g