用户自定义补全(^u^n^p)找不到模式
vim吧
全部回复
仅看楼主
level 3
Panda_Warrior 楼主
装了YCM,YCM能凑活用,但是经常有这个提示
之前在ubuntu14.04下的vim也是这样,后来升级到15.04,跟YCM配合得很完美
windows上装的是官网7.4稳定版本,所以我想会不会是没打补丁有点旧了
我想试着编译一下源码,但是还没看懂
请问有比较新的vim安装包或者其他解决办法吗?
谢谢
2015年10月16日 03点10分 1
level 3
Panda_Warrior 楼主
一,安装youcompleteme插件
总览
https://github.com/Valloric/YouCompleteMe/#full-installation-guide
1,用git下载
cd .vim/bundle
git clone --recursive https://github.com/Valloric/YouCompleteMe.git
git submodule update --init --recursive
2,终端安装必要组建
sudo apt-get install cmake
sudo apt-get install python-dev
说明:windows还需安装Visual Studio community edition
https://www.visualstudio.com/products/free-developer-offers-vs.aspx
3,不需C-family支持
cd ~/.vim/bundle/YouCompleteMe
./install.py
OK!!
4,终端创建
cd ~
mkdir ycm_build
cd ycm_build
5.1,在ycm_build目录(不需C-family支持)
cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
cmake --build . --target ycm_support_libs --config Release
5.2.1,下载llvm和clang源代码(需要C-family支持)
http://llvm.org/releases/download.html
编译方法:
http://clang.llvm.org/get_started.html
Build LLVM and Clang:
mkdir build (in-tree build is not supported)
cd build
cmake -G "Unix Makefiles" ../llvm
make
This builds both LLVM and Clang for debug mode.
Note: For subsequent Clang development, you can just run make clang.
编译说明:
1,build文件夹建立在家目录
2,clang放在llvm/tools/文件夹
3,编译成的二进制文件放到 ~/ycm_temp/llvm_root_dir
4,windows可下载编译好的二进制文件
5.2.2,在ycm_build目录
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
cmake --build . --target ycm_support_libs --config Release
说明:windows下将"Unix Makefiles"换为
Visual Studio 11 2012 Win64
Visual Studio 12 2013 Win64
Visual Studio 14 2015 Win64
去掉Win64如果Vim的版本是32位
5.2.3, .vimrc中加入
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
2016年02月22日 02点02分 5
level 9
感觉YCM太麻烦了,现在转到neovim,用的deoplete.nvim补全插件
2016年02月22日 15点02分 6
对,我后来也放弃了ycm用的neocomplete
2016年02月23日 15点02分
@不要污要帅气 看看这个是不是你要的Shougo/neoinclude.vim
2016年03月13日 07点03分
1