How to install plugins in vim using vundle?
Quick Guide For Vundle packages installation - In short:
Open terminal and edit the vimrc file (using
vim ~/.vimrc
)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()
- open Terminal and open vim (just
vim
) and Type:VundleInstall
, On packages installation window, Wait until Vundle installer is getting finished.
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.