Vim + Vundle + YouCompleteMe 配置
来源:互联网 发布:淘宝店铺介绍大全 编辑:程序博客网 时间:2024/05/19 11:37
动机:
为了安装YouCompleteMe插件,需要安装vim 较高版本,并使用Vundle安装YouCompleteMe,详细的可以参考github上的ReadMe
1. vim 安装
http://www.vim.org/git.php
git clone https://github.com/vim/vim.gitcd srcmake distclean # if you build Vim beforemakesudo make install
2.Vundle 安装
https://github.com/VundleVim/Vundle.vim
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
在vimrc中写入:
filetype offset rtp+=~/.vim/bundle/vundle/call vundle#rc()Bundle 'gmarik/vundle'filetype plugin indent on
3. YouCompleteMe 安装
在vimrc中加入一行:
Plugin 'Valloric/YouCompleteMe'
重新进入vim并输入命令:PluginInstall
完
后续还有好多问题,现在继续解决。 重新申请了一个云主机,重新进行配置。
https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64
1. 源码编译vim
https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source
修改config参数:
./configure --with-features=huge \ --enable-multibyte \ --enable-pythoninterp=yes \ --with-python-config-dir=/usr/lib/python2.7/config \ --prefix=/usr
终于编译成功了
2.接下来就是安装Vundle
首先我们从github上找了一个比较好的vimrc配置文件
https://github.com/vgod/vimrc
接下来安装Vundle
https://github.com/VundleVim/Vundle.vim#about
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nocompatible " be iMproved, requiredfiletype off " requiredset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()Plugin 'VundleVim/Vundle.vim'Plugin 'tpope/vim-fugitive'"Plugin 'L9'Plugin 'git://git.wincent.com/command-t.git'"Plugin 'file:///home/gmarik/path/to/plugin'Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}"Plugin 'ascenator/L9', {'name': 'newL9'}call vundle#end() " requiredfiletype plugin indent on " required
这里我们注释了一些
3.添加YouCompleteMe
Plugin 'Valloric/YouCompleteMe'
Launch vim
and run :PluginInstall
https://github.com/VundleVim/Vundle.vim#about
还需要 执行
apt-get install build-essential cmakeapt-get install python-dev python3-dev
cd ~/.vim/bundle/YouCompleteMe./install.py --clang-completer
正常到这儿救可以了,但是cmake我这apt-get版本低了所以需下载cmake源码安装
wget https://cmake.org/files/v3.7/cmake-3.7.1.tar.gztar zxvf cmake-3.7.1.tar.gz./bootstrap && make && make install
Success!
重新运行./install.py --clang-completer
妈的还是有问题, 直接删除了YouCompleteMe文件夹,重新来一遍。
发现了问题,是因为boost和gcc 4.版本的问题,先安装上gcc 4.8在说 。
- Vim + Vundle + YouCompleteMe 配置
- Vim+Vundle+YouCompleteMe
- Mac 下配置 Vim vundle 代码补全 YouCompleteMe 等
- vim代码补全:YouCompleteMe\Vundle\python
- vim自动配置(YouCompleteMe)
- Vim配置YouCompleteMe
- vim配置vundle插件管理器
- Windows配置Vim和vundle
- Vim配置#Vundle插件管理工具
- vim插件配置(vundle)
- 使用Vundle安装YouCompleteMe
- ubuntu配置vim+youcompleteme记录
- ubuntu配置vim+youcompleteme记录
- Ubuntu中vim配置YouCompleteMe
- VIM高级配置III#YouCompleteMe
- vim 学习笔记三,Ubuntu下vim 安装vundle和有youcompleteme+jedi
- 使用Vundle管理配置Vim基本插件
- VIM配置Step By Step------Vundle篇
- EditText防止输入法顶走标题栏以及改变光标底部线颜色
- Mysql入门语句
- IDA PRO动态调试 尝试脱壳记录
- 有关C/C++指针的经典面试题
- 多层神经网络BP算法 原理及推导
- Vim + Vundle + YouCompleteMe 配置
- 我们不该这样的
- ubuntu-16 开机服务rc.local
- Apache Shiro入门
- Hibernate中的延迟加载、实体关联单向一对多及双向一对多实体关联
- the user must supply a jdbc connection 错误解决方法
- HBase shell 操作
- 有关C/C++指针的经典面试题
- 2016书单总结--深入理解Java虚拟机-JVM高级特性与最佳实践--自动内存管理