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