【问题标题】:YouCompleteMe can't autocompleteYouCompleteMe 无法自动完成
【发布时间】:2015-07-15 23:05:18
【问题描述】:
我想开发C/C++程序,所以通过Vundle安装了YouCompleteMe for Vim。但是不能正常工作,实际上只显示当前文件中包含的文字。希望能帮到你!
我的步骤如下:
git 克隆 https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
设置不兼容
文件类型关闭
设置 rtp+=~/.vim/bundle/Vundle.vim
调用 vundle#begin()
插件'gmarik/Vundle.vim'
插件'Valloric/YouCompleteMe'
调用 vundle#end()
文件类型插件缩进
`:插件安装`
http://llvm.org/releases/download.html#3.6.0
http://www.cmake.org/download/
将“clang+llvm-3.6.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz”解压到ycm_temp
将“clang+llvm-3.6.0-x86_64-linux-gnu”重命名为“llvm_root_dir”
提取 cmake-3.2.2-Linux-x86_64.tar.gz 并将 bin/cmake 链接到 /usr/bin/cmake
光盘~
mkdir ycm_build
cd ycm_build
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir 。 ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
制作 ycm_support_libs
让 g:ycm_seed_identifiers_with_syntax=1
让 g:ycm_global_ycm_extra_conf = '/home/li/.vim/bundle/YouCompleteMe/.ycm_extra_conf.py'
让 g:ycm_confirm_extra_conf=0
让 g:ycm_collect_identifiers_from_tag_files = 1
设置 completeopt=longest,menu
现在,没有错误或警告被抛出,但它不能自动完成 C/C++ 头文件!
操作系统:ubuntu 14.04
vim:7.4
蟒蛇:2.7.6
【问题讨论】:
-
你跑./install.sh --clang-completer了吗?
-
-
-
Printing YouCompleteMe 调试信息... -- 服务器已编译 Clang 支持:True -- Clang 版本:clang 版本 3.6.0 (tags/RELEASE_360/final) -- 服务器运行于:@987654321 @ -- 服务器进程ID:2549
-
标签:
c++
linux
git
vim
autocomplete