码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu vim YouComlpeteMe配置

时间:2016-08-17 19:48:45      阅读:430      评论:0      收藏:0      [点我收藏+]

标签:

使用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
                                   

 

ubuntu vim YouComlpeteMe配置

标签:

原文地址:http://www.cnblogs.com/mmmmar/p/5781378.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!