Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install plugins in vim using vundle?

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
like image 225
user6490375 Avatar asked Dec 23 '17 22:12

user6490375


People also ask

How do I install plugins in Vim?

Starting with Vim version 8, you can install plugins without the need for a package manager by using the default package management tool. You can place Vim plugins in the ~/. vim/pack/vendor/start/plugin_name directory. Note that the plugin_name folder name will vary from plugin to plugin.

What is Vim Vundle?

Vundle is short for Vim bundle and is a Vim plugin manager. Vundle allows you to... keep track of and configure your plugins right in the .vimrc. install configured plugins (a.k.a. scripts/bundle) update configured plugins.


2 Answers

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.

like image 143
Qwertycrackers Avatar answered Oct 18 '22 11:10

Qwertycrackers


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.
like image 21
avivamg Avatar answered Oct 18 '22 10:10

avivamg