使用vundle安装时,在.vimrc中添加 Plugin ‘Valloric/YouCompleteMe‘ 使用Bundle会安装失败原因未知
YCM编译时附加选项--system-libclang
使用系统的clang包
我的vim配置
set tabstop=4 set softtabstop=4 set shiftwidth=4 set noexpandtab set nu set autoindent set cindent set nocompatible filetype off set rtp+=~/.vim/bundle/vundle/ call vundle#rc() Plugin ‘gmarik/vundle‘ filetype plugin indent on Plugin ‘Valloric/YouCompleteMe‘ set completeopt=menu let g:ycm_global_ycm_extra_conf=‘~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py‘ "关闭静态代码检查 let g:ycm_show_diagnostics_ui = 0 "手动补全快捷键 let g:ycm_key_invoke_completion = ‘<C-c>‘ let g:ycm_confirm_extra_conf=0 let g:ycm_cache_omnifunc = 0 let g:ycm_seed_identifiers_with_syntax = 1 let g:ycm_min_num_of_chars_for_completion= 1 let g:ycm_collect_identifiers_from_tags_files = 1 let g:ycm_collect_identifiers_from_comments_and_strings = 1
时间: 2024-11-05 06:12:15