find and replace with confirmation vim code example Example: vim replace with confirmation :%s/foo/bar/gc