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. aplex@aplex:~/.vim/bundle/YouCompleteMe$ ./install.py --clang-completer
    5. aplex@aplex:~/.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-10-18 16:48:52

Vim Vundle YouCompleteMe的相关文章

vim下使用YouCompleteMe实现代码提示、补全以及跳转设置

配置YouCompleteMe 1. 安装vundle vundle是一个管理vim插件的工具,使用vundle安装YouCompleteMe比较方便. 按照作者在https://github.com/gmarik/Vundle.vim#about提供的方法安装好vundle.(主要是下载解压,病略微修改 .vimrc) 2. 使用vundle安装YouCompleteMe 主要根据作者自己的建议整理 https://github.com/Valloric/YouCompleteMe 在.vim

Linux系统Vim编辑器如何安装YouCompleteMe插件?

Linux系统Vim编辑器如何安装YouCompleteMe插件?  编译配置选项: /configure --with-features=huge --enable-pythoninterp --enable-python3interp --enable-luainterp --enable-multibyte --enable-sniff --enable-fontset 在我的机器上装有python2.7.5 和 python3.3, 但加了enable-python3interp参数依然

Vim 自动补全神器:YouCompleteMe

第一次听说这个插件还是在偶然的情况下看到别人的博客,听说了这个插件的大名.本来打算在实训期间来完成安装的,无奈网实在不给力,也就拖到了回家的时候.在开始准备工作的时候就了解到这个插件不是很容易安装,安装的时候果然名不虚传.(关于这方面的内容,请查看另一篇文章)不过,有付出总有回报,安装之后用上这个插件,真心为这个插件的强大所折服. 那这个插件有何不同?  YouCompleteMe的特别之处 基于语义补全 总所周知,Vim是一款文本编辑器.也就是说,其最基础的工作就是编辑文本,而不管该文本的内容

超级强大的vim配置(vimplus)

From : http://www.cnblogs.com/highway-9/p/5984285.html From : http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html From : http://www.cnblogs.com/youxia/p/linux002.html From : http://blog.csdn.net/namecyf/article/details/7787479 最近在重新配置Vim,也在

C编程vim初步配置

C编程vim初步配置 我的 .vimrc文件 "******************************************************** " 一般性配置 * "********************************************************   "关闭vim一致性原则 set nocompatible   "显示行号 set number   "设置在编辑过程中右下角显示光标的行列信息 se

Ubuntu YouCompleteMe 插件配置

Linux系统:Ubuntu 15.04,为Vim安装YouCompleteMe插件,有需要的朋友可以参考下. 0x00. 简介 YouCompleteMe号称Vim的自动补全神器,YouCompleteMe: a code-completion engine for Vim,该项目在github的地址:YouCompleteMe. 0x01. Requirements Vim is at least 7.3.584 and it has support for python2 scriptin

vim-addon-manager install youcompleteme

/****************************************************************************** * vim-addon-manager install youcompleteme * 说明: * Vundle安装YCM实在是太慢了,受不了,用vam安装倒是挺快的. * * 2017-3-13 深圳 南山平山村 曾剑锋 **********************************************************

Vim + Markdown 结合使用

Vim + Markdown 结合使用 Vim 编辑文档,通过浏览器实时查看 markdown 文档. 使用示例 链接 安装 vim 官方下载安装,需要安装支持 python2 或 python3 ,Vim 官方下载. 安装 vim 插件管理器 vundle 下载 Vundle 链接 或者git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 配置 ~/.vimrc set nocompatib

youcompleteme-VIM插件YouCompleteMe如何配置才能对自定义头文件中的函数和类型进行补全

问题描述 VIM插件YouCompleteMe如何配置才能对自定义头文件中的函数和类型进行补全 我最近在折腾YouCompleteMe,对基本的C/C++关键字都能进行补全,但不能对自己项目中的头文件中的标识符进行补全,已经在 .ycm_extra_conf.py中通过'-I','自己项目头文件的路径'的方式把自己的头文件路径加入了flags中,但还是不能对自己编写的头文件中的函数和类型进行补全,应该怎么配置??? 解决方案 我看了你的答案,没什么有用的内容 解决方案二: 可以看看这篇博文: h