输出: -- The C compiler identification is GNU 9.1.0 -- The CXX compiler identification is GNU 9.1.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.16", minimum required is "2.7") -- Using libclang to provide semantic completion for C/C++/ObjC -- Found Boost: /usr/include (found version "1.69.0") found components: filesystem regex -- Using external libclang: /usr/lib/libclang.so.8 -- NOT using clang-tidy for static analysis. -- Configuring done -- Generating done -- Build files have been written to: /home/joxrays/ycm_build
set nocp set modelines=0 set backspace=2 syntax on autocmd InsertLeave * se nocul autocmd InsertEnter * se cul set smartindent set autoindent set confirm set tabstop=4 set softtabstop=4 set shiftwidth=4 set expandtab set number sethistory=50 set hlsearch set incsearch set gdefault set encoding=utf-8 set fileencodings=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936,utf-16,big5,euc-jp,latin1 set guifont=Menlo:h16:cANSI set langmenu=zn_CN.UTF-8 set helplang=cn set ruler set laststatus=1 set showcmd set scrolloff=3 set showmatch set matchtime=5 set autowrite set wildmenu set linespace=2 set whichwrap=b,s,<,>,[,] set foldenable set cursorline set magic set ignorecase set background=dark set t_Co=256 set mouse=i set backspace=indent,eol,start set nocompatible
let g:ycm_key_list_select_completion = ['<Down>'] let g:ycm_key_list_previous_completion = ['<Up>']
let g:ycm_goto_buffer_command = 'horizontal-split' let g:ycm_server_python_interpreter='/usr/bin/python2' let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py' let g:airline#extensions#tabline#enabled = 1 let g:ycm_seed_identifiers_with_syntax = 1 let g:ycm_complete_in_strings = 1 let g:ycm_collect_identifiers_from_tags_files = 1 let g:ycm_complete_in_comments = 1 let g:ycm_min_num_of_chars_for_completion = 2 let g:ycm_cache_omnifunc=0 let g:ycm_confirm_extra_conf=0
syntax enable "colorscheme solarized "colorscheme gotham colorscheme jellybeans let g:solarized_termcolors=256
let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowCollapsible = '▾' map <C-b> :NERDTreeToggle<CR>
map <C-m> :Tagbar<CR> let g:tagbar_ctags_bin='ctags' let g:tagbar_width=30