Skip to content

Latest commit

 

History

History
executable file
·
18 lines (18 loc) · 600 Bytes

vimcppplugin.md

File metadata and controls

executable file
·
18 lines (18 loc) · 600 Bytes
  1. YouCompleteMe Vim plugin was installed
  2. 'sudo apt-get install build-essential cmake python3-dev'
  3. 'cd ~/.vim/bundle'
  4. 'git clone https://github.com/ycm-core/YouCompleteMe.git'
  5. 'cd YouCompleteMe'
  6. 'git submodule update --init --recursive'
  7. './install.py --clang-complete'
  8. edit '~/.vim/bundle/YouCompleteMe/.ycm_extra_conf.py' to add
def Settings(**kwargs ):
  return {
    'flags': [ '-x', 'c++', '-Wall', '-Wextra', '-Werror' ],
  }
  1. append the following line to '~/.vimrc'
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/.ycm_extra_conf.py'