ubuntu vim YouComlpeteMe配置

时间:2023-03-09 06:03:59
ubuntu vim YouComlpeteMe配置

使用vundle安装时,在.vimrc中添加 Plugin 'Valloric/YouCompleteMe' 使用Bundle会安装失败原因未知

YCM编译时附加选项--system-libclang使用系统的clang包

我的vim配置

  set tabstop=
  set softtabstop=
  set shiftwidth=
  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 =
  "手动补全快捷键
  let g:ycm_key_invoke_completion = '<C-c>'
  let g:ycm_confirm_extra_conf=
  let g:ycm_cache_omnifunc =
  let g:ycm_seed_identifiers_with_syntax =
  let g:ycm_min_num_of_chars_for_completion=
  let g:ycm_collect_identifiers_from_tags_files =
  let g:ycm_collect_identifiers_from_comments_and_strings =