Update YouCompleteMe to the latest version.
Use <leader> + 2 to toggle between paste modes.

Using F2 for that is problematic under rxvt/tmux.