0

I read that vim 8 provides it default plugin manager. I upgraded my vim to vim 8.0 and am trying to install the plugin using the method provided in the documentation. youcompleteme plugin github repo recommends using Vundle to install the plugin on mac. Just wondering if it can also be installed using default plugin manager supported in vim 8.0 and how to install it?

  • 1
    Simply clone it into ~/.vim/pack/dist/start if you want it always available, use the opt folder instead of start if you only need it on demand. (but then you need to execute :packadd YouCompleteMe whenever you want it to have it loaded). However YouCompleteMe needs some postinstallation script to be run, so you need to do that manually. – Christian Brabandt Sep 11 '17 at 6:25
2
mkdir -p ~/.vim/pack/plugins/opt
git clone https://github.com/Valloric/YouCompleteMe ~/.vim/pack/plugins/opt/YouCompleteMe
cd ~/.vim/pack/plugins/opt/YouCompleteMe && git submodule update --init --recursive && ./install.py --all

add following code to your vimrc

execute 'packadd YouCompleteMe'

or execute

packadd YouCompleteMe

when you want to start it.

  • 2
    Did you test this? packadd foo looks for pack/*/opt/foo. See the section immediately before :h pack-add on how to add a single plugin using packages. – muru Sep 11 '17 at 6:52
  • Also, the git clone command is not creating YouCompleteMe directory. But it did help anyway. – ndvo Sep 26 at 1:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.