Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active January 5, 2024 10:16
Show Gist options
  • Save diegopacheco/8a78849d52c3462addb15f29335aa854 to your computer and use it in GitHub Desktop.
Save diegopacheco/8a78849d52c3462addb15f29335aa854 to your computer and use it in GitHub Desktop.
Install YouCompleteMe on SpaceVim for vim

Install SpaceVim

curl -sLf https://spacevim.org/install.sh | bash

Install YouCompleteMe

cd $HOME/.vim/plugged
git clone https://github.com/ycm-core/YouCompleteMe.git
sudo apt install build-essential cmake vim-nox python3-dev
python3 install.py --all

We will need to add a line on: ~/.space-vim. Search for this:

" Manage your own plugins.
" Refer to https://github.com/junegunn/vim-plug for more detials.
function! UserInit()

  " Add your own plugin via Plug command.
  Plug 'junegunn/seoul256.vim'

endfunction

Add after the first Plug line:

Plug 'Valloric/YouCompleteMe'

Result is:

" Manage your own plugins.
" Refer to https://github.com/junegunn/vim-plug for more detials.
function! UserInit()

  " Add your own plugin via Plug command.
  Plug 'junegunn/seoul256.vim'

  Plug 'Valloric/YouCompleteMe'

endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment