map <F9> to Shutdown ycm_auto_trigger
map <F10> to Reopen ycm_auto_trigger

nnoremap <F9> :let g:ycm_auto_trigger = 0<CR>
nnoremap <F10> :let g:ycm_auto_trigger = 1<CR>