Vim Vundle YouCompleteMe

/**************************************************************************************
 *                            Vim Vundle YouCompleteMe
 * 说明:
 *     之前在Vim中安装YCM出了问题,装不了,这次花点时间再折腾一下,可以了。
 *
 *                                                  2016-8-14 深圳 南山平山村 曾剑锋
 *************************************************************************************/
Vim+Vundle+YouCompleteMe

一. 参考文档:
    1. YouCompleteMe
        https://github.com/Valloric/YouCompleteMe
    2. Vim+Vundle+YouCompleteMe
        http://blog.csdn.net/vintage_1/article/details/21557277
    3. When I‘m installing the YouCompleteMe plug-in for MacVim, it shows ‘Please install Cmake and retry‘. What should I do next?
        https://www.quora.com/When-Im-installing-the-YouCompleteMe-plug-in-for-MacVim-it-shows-Please-install-Cmake-and-retry-What-should-I-do-next

二. vim插件安装:
    1. .vimrc添加Plugin ‘Valloric/YouCompleteMe‘
    2. vim中执行:PluginInstall
    3. 等待安装完成
    4. [email protected]:~/.vim/bundle/YouCompleteMe$ ./install.py --clang-completer
    5. [email protected]:~/.vim/bundle/YouCompleteMe$ cp ./third_party/ycmd/cpp/ycm/.ycm_extra_conf.py ~

三. YCM .vimrc配置:
    """"""""""""""""""""""""""""""
    " ycm setting
    """"""""""""""""""""""""""""""
    let g:ycm_global_ycm_extra_conf=‘~/.ycm_extra_conf.py‘
    let g:ycm_collect_identifiers_from_tag_files = 1
    let g:ycm_seed_identifiers_with_syntax = 1
    let g:ycm_confirm_extra_conf=0
    let g:ycm_key_invoke_completion = ‘<C-/>‘
    nnoremap <F5> :YcmForceCompileAndDiagnostics<CR>
时间: 2024-08-23 07:20:50

Vim Vundle YouCompleteMe的相关文章

Vim使用YouCompleteMe达到类似IDE的代码提示、补全,以及其他实用设置

接触Linux有两年了,vim还是只会简单的操作.最近实在受不了sublime的代码提示,决定花点时间来配置下vim.本文讲自己认为方便的vim配置,称不上完美,只讲究简单实用. 使用 ctags 主要参考   http://roclinux.cn/?p=424 1.  ctags根据代码产生索引文件,支持ava, c, c++, python, perl, php, ruby, scheme, tcl, vim, yacc, bash/kron shell/zsh, cobol, awk, a

【转】Ubuntu13.04配置:Vim+Syntastic+Vundle+YouCompleteMe

原文网址:http://www.cnblogs.com/csuftzzk/p/3435710.html 序言 使用Ubuntu和vim已经有一段时间了,对于Vim下的插件应用,我总是抱着一股狂热的态度.这次,又在网上闲逛着,发现了一个个人博客提到了Vim代码补全这回事,并提到了YouCompleteMe这个插件.顿时激起了我折腾的欲望.以前我都是使用Ctags+<C-n>或<C-p>来进行补全,然而其命中率却比较低,有时候根本就乱匹配.于是决定将YouCompleteMe这个插件安

ubuntu 12.04 下 Vim 插件 YouCompleteMe 的安装

作者:jostree 转载请注明出处 http://www.cnblogs.com/jostree/p/4137402.html 1.需要保证vim的版本大于7.3.584,否则的话需要更新vim 可以通过第三方源更新: 在终端输入下面的代码: $ sudo add-apt-repository ppa:fcwu-tw/ppa $ sudo apt-get update $ sudo apt-get install vim 升级得到vim7.4 2.需要有clang3.2以上的库 可以再此处下载

Ubuntu16.04 为vim安装YouCompleteMe插件

安装这个插件因为一些错误的操作费了不少时间,把过程记录下,以后需要安装时避免浪费时间. 一些准备工作: 1.首先安装vim: 1 sudo apt-get install vim-gtk 2.安装完成后,查看vim对python的支持 1 vim --version | grep python 发现是有对Python3的支持而没有对Python2的支持. 如果需要换成对python2的支持的话,可以安装py2包: 1 sudo apt-get install vim-nox-py2 安装完成后,

Ubuntu 16.04 + vim8 + vundle + YouCompleteMe

[vim8] 1.卸载旧版 vim . 1.1.查看 [email protected]:~$ dpkg -l | grep vim ii  vim-common                         2:7.4.1689-3ubuntu1.2             amd64        Vi IMproved - Common files ii  vim-tiny                           2:7.4.1689-3ubuntu1.2          

一步一步带你安装史上最难安装的 vim 插件 —— YouCompleteMe

YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for Vim.参考: https://github.com/Valloric/YouCompleteMe#full-installation-guide本篇文章默认读者知道什么是 unix/linux,vim/vi, YouCompleteMe,如果有不清楚的,Search engine is your friend 或者留言讨论.YouCompl

【转】ubuntu 12.04 下 Vim 插件 YouCompleteMe 的安装

原文网址:http://www.cnblogs.com/jostree/p/4137402.html 作者:jostree 转载请注明出处 http://www.cnblogs.com/jostree/p/4137402.html 1.需要保证vim的版本大于7.3.584,否则的话需要更新vim 可以通过第三方源更新: 在终端输入下面的代码: $ sudo add-apt-repository ppa:fcwu-tw/ppa $ sudo apt-get update $ sudo apt-g

vi安装Vundle+YouCompleteMe+注释快捷Bundle &#39;scrooloose/nerdcommenter&#39;

Vundle Vundle is short for Vim bundle and is a Vim plugin manager. Set up Vundle: 从git上下载vundle $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim Configure Plugins Put this at the top of your .vimrc to use Vundle. Remov

vim的youcompleteme插件安装过程

Vim的youcompleteme(简称ycm)插件是一个代码提示补全插件,便于配合vim搭建一个轻量级的IDE,十分好用.但是从听说到今晚安装成功却经历来一些坎坷.官网的教程都不能安装成功.最后走的是自己克隆代码工程并编译的路子. 1,克隆工程 git clone --recursive https://github.com/Valloric/YouCompleteMe.git 这个需要花点时间,尤其是网速不够的时候: 下载完毕之后,检查工程完整性: git submodule update