I installed YCM plugin. And I want YCM to complete left, right parenthesis.I made a simple cpp source file. In main function, I declared vector<int> v(10, 0);when I pressed dot(.), vector member functions were shown:Then, I pressed downward arrow key and reached empty() function.Everytime I press arrow key, YCM automatically complete function name. When I move recommendation menu, YCM ONLY complete function name and does not complete parenthesis. It is reasonable.Finally, I pressed enter key(I chosed empty() function). However YCM did not complete parenthesis.v.emptySo, I need to manually type left and right parenthesis.I expected that when I pressed enter, YCM would complete parenthesis as well.Is it possible to make YCM complete parenthesis?below is my ~/.vimrc config.let g:neocomplcache_enable_at_startup = 1set completeopt-=previewlet g:ycm_add_preview_to_completeopt = 0set nocompatible               be iMproved, requiredfiletype off                   required set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin() alternatively, pass a path where Vundle should install pluginscall vundle#begin('~/some/path/here')Plugin 'delimitMate.vim'Plugin 'VundleVim/Vundle.vim'Plugin 'AutoComplPop'Plugin 'Valloric/YouCompleteMe'Plugin 'tpope/vim-fugitive'Plugin 'L9'Plugin 'git://git.wincent.com/command-t.git'call vundle#end()             requiredfiletype plugin indent on     requiredlet g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'let g:ycm_confirm_extra_conf = 0To avoid conflict snippetslet g:ycm_key_list_select_completion = ['<C-j>', '<Down>']let g:ycm_key_list_previous_completion = ['<C-k>', '<Up>']let g:ycm_autoclose_preview_window_after_completion = 1let g:ycm_autoclose_preview_window_after_insertion = 1let g:ycm_show_diagnostics_ui = 0let g:ycm_enable_diagnostic_signs = 0let g:ycm_echo_current_diagnostic = 0let g:ycm_collect_identifiers_from_tags_files = 1set backspace=2if has(syntax)    syntax onendifset nuset nuw=9set magicset ls=2set scset cursorlineset autoindentset ts=4set shiftwidth=4set laststatus=2set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\set hlsearchset scrolloff=2set showmatchset showmodeset smarttabset smartindentset softtabstop=4set tabstop=4set rulerset incsearchset titleset wrapset scrollbindset background=darkhi Comment term=bold cterm=bold ctermfg=greensyntax enable AutoComplPop customizingfunction! InsertTabWrapper()    let col = col('.')-1    if !col||getline('.')[col-1]!~'\k'        return \<TAB>    else        if pumvisible()            return \<C-N>        else            return \<C-N>\<C-P>        end    endifendfunction AutoComplPop endinoremap <TAB> <c-r>=InsertTabWrapper()<cr>hi Pmenu ctermbg=bluehi PmenuSel ctermfg=yellow ctermbg=blackhi PmenuSbar ctermbg=redDelimitMate customizingBreakLine: Return TRUE if in the middle of {} or () in INSERT modefun BreakLine()  if (mode() == 'i')    return ((getline(.)[col(.)-2] == '{' && getline(.)[col(.)-1] == '}') ||          \(getline(.)[col(.)-2] == '(' && getline(.)[col(.)-1] == ')'))  else    return 0  endifendfun Remap <Enter> to split the line and insert a new line in between if BreakLine return Trueinoremap <expr> <CR> BreakLine() ? <CR><ESC>O : <CR>DelimitMate end
How to make YouCompleteMe complete parenthesis
autocompletion;plugin you complete me