美文网首页
安装Vim自动补全插件YouCompleteMe

安装Vim自动补全插件YouCompleteMe

作者: 许宏川 | 来源:发表于2016-09-16 09:56 被阅读180次

    安装方式是Vim的插件管理器Vundle,没用过的话可以看这篇文章

    首先在~/.vimrc加入新插件。

    Plugin 'Valloric/YouCompleteMe'
    

    保存重新打开一个Vim在命令模式安装。

    :PluginInstall
    

    安装CMake。

    brew install CMake
    

    编译安装,如果需要加入C#支持还需要加入--omnisharp-completer参数。

    cd ~/.vim/bundle/YouCompleteMe
    ./install.py --clang-completer
    

    动图来自官网

    相关文章

      网友评论

          本文标题:安装Vim自动补全插件YouCompleteMe

          本文链接:https://www.haomeiwen.com/subject/thxiettx.html