15

I am using Vundle to install YouCompleteMe (YCM). However, I am unable to install it (the installation guide just says running :PluginInstall, but not what to do once the following page opens):

enter image description here

I tried hitting buttons like return, etc. but they don't seem to work. Any guidance please?

Edit: Also, note that at this point, it is not already installed because I am unable to see the YouCompleteMe directory in bundle (whereas it should be there).

.vim -> bundle -> YouCompleteMe

Edit:

My .vimrc looks like follows:

set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
filetype plugin indent on
romainl
  • 186,200
  • 21
  • 280
  • 313
user6490375
  • 424
  • 1
  • 4
  • 13

2 Answers2

12

RunningPluginInstall is a part of it. However, Vundle knows what plugins to install based on your .vimrc file.

Add another Plugin statement after the Vundle one, pointing to the plugin you want installed. If the plugin is on GitHub, this is as simple as using the repository name. So

Plugin 'Valloric/YouCompleteMe'

Should help with your current issue. You may still need to compile the plugin and whatnot. See the full installation guide for full guidance on this topic.

Finally, you must ensure that clang is installed and run the compilation script.

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

For this you'll need certain python headers and cmake, both of which may be found in the plugin installation guide linked above.

Qwertycrackers
  • 626
  • 4
  • 12
  • I am sorry but I am not sure what you mean. Could you please elaborate? – user6490375 Dec 24 '17 at 01:00
  • After including `Valloric/YouCompleteMe`, it is showing processing since a long time. Do you have an idea how long it'll take? – user6490375 Dec 24 '17 at 01:06
  • I've never used `YouCompleteMe`, but it says it has a compiled component. I think Vundle has a way to call that compilation, so I suspect it is processing for a long time because you are compiling the entire plugin. As far as I know this is normal. – Qwertycrackers Dec 24 '17 at 01:10
  • Yes, but it gives an error `YcmServerShutdown`. I am not sure how to overcome this? – user6490375 Dec 24 '17 at 01:17
  • 1
    Ok, I've got it. The last step is to compile the `ycm_core`. I've appended to the answer above, but first check `~/.vim/bundle/YouCompleteMe` to see if the plugin has been downloaded. – Qwertycrackers Dec 24 '17 at 01:28
  • It has been downloaded now, but I get the error `YcmServerShutdown`. Restarting the server does not help! :( – user6490375 Dec 24 '17 at 01:29
  • Would you mind answer my new question as well, please: https://stackoverflow.com/q/47957625/8534521? – user6490375 Dec 24 '17 at 02:40
4

Quick Guide For Vundle packages installation - In short:

  1. Open terminal and edit the vimrc file (using vim ~/.vimrc)

  2. paste the name of package according to the documentation, paste it between
    vundle#begin() and vundle#end.

call vundle#begin()
Plugin 'PluginAuthor/PluginName'
call vundle#end()

for example:

call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'airblade/vim-gitgutter'
Plugin 'dracula/vim'
Plugin 'tpope/vim-fugitive'

call vundle#end()           
  1. open Terminal and open vim (just vim ) and Type :VundleInstall , On packages installation window, Wait until Vundle installer is getting finished.
avivamg
  • 12,197
  • 3
  • 67
  • 61