zoukankan      html  css  js  c++  java
  • 安装YouCompleteMe

    1. from software center

    1 $ apt-get install vim vim-youcompleteme vim-addon-manager

    2 $ vam install youcompleteme

    3 修改 /usr/lib/vim-youcompleteme/ycm_extra_conf.py

       参考 https://github.com/Valloric/YouCompleteMe#completion-doesnt-work-with-the-c-standard-library-headers

    https://github.com/Valloric/ycmd/blob/master/cpp/ycm/.ycm_extra_conf.py

       $ echo | clang -v -E -x c++ -

    4 下面是个人在.vimrc中的配置

    "----------------youcompleteme config------------------------------
    let g:ycm_autoclose_preview_window_after_insertion=1
    "let g:ycm_seed_identifiers_with_syntax=1
    "let g:ycm_cache_omnifunc=0
    "nnoremap <C-]> :w<CR>:YcmCompleter GoToDefinitionElseDeclaration<CR>
    nnoremap <C-]> :YcmCompleter GoToDefinitionElseDeclaration<CR>
    let g:ycm_key_invoke_completion='<S-Space>'

    5 若你设置了 let g:ycm_autoclose_preview_window_after_insertion=1 

    那么会有一个问题,软件源中的vim-youcompleteme版本可能较低,是有bug的,得修改一个脚本

    https://github.com/Valloric/YouCompleteMe/pull/1103/files

    2. from https://github.com/Valloric/YouCompleteMe

    1. vundle

    2. after vundleinstall,

    in bottom line: ycm....[so|a|..] and another lib is missing , you don't care it.

    you had better do ( maybe vundle is some error) the following cmd in   .vim/bundle/YouCompleteMe/

    $ git submodule update --init --recursive

    wait about one hour

    3. llvm+clang

    4 config, make etc.

    大家在安装过程中有任何问题,可以在下面回复。

  • 相关阅读:
    C# 安装包中添加卸载
    如何提取json里面的数据
    JSON写入
    在Net下处理Json
    Linq To Json
    衡量视频序列特性的TI(时间信息)和SI(空间信息)
    DotCMS安装步骤
    【12c OCP】最新CUUG OCP071考试题库(52题)
    【ocp12c】最新Oracle OCP071考试题库(44题)
    【Oracle 12c】最新CUUG OCP071考试题库(53题)
  • 原文地址:https://www.cnblogs.com/jjtx/p/4517229.html
Copyright © 2011-2022 走看看