if g:at_google
    Glug youcompleteme-google
else
    Plugin 'Valloric/YouCompleteMe'
endif

nnoremap <C-y>g :YcmCompleter GoTo<CR>
nnoremap <C-y>d :YcmCompleter GoToDeclaration<CR>
nnoremap <C-y>f :YcmCompleter GoToDefinition<CR>

let g:ycm_confirm_extra_conf = 0

if g:at_google
    Glug youcompleteme-google
else
    Plugin 'Valloric/YouCompleteMe'
endif

nnoremap <C-y>g :YcmCompleter GoTo<CR>
nnoremap <C-y>d :YcmCompleter GoToDeclaration<CR>
nnoremap <C-y>f :YcmCompleter GoToDefinition<CR>
nnoremap <C-y>r :YcmForceCompileAndDiagnostics<CR>
nnoremap <C-y>R :YcmRestartServer<CR>

let g:ycm_confirm_extra_conf = 0

Add two more YCM key bindings.
Add two more YCM key bindings.

hejiangzhou/dotfiles