Enter bash in command prompt:
1 |
C:\Users\Edward>bash |
Install the prerequisite for the plugin
1 2 |
$ sudo apt-get install build-essential cmake $ sudo apt-get install python-dev python3-dev |
Check for python support of vim (either python 2 / 3)
1 |
$ vim --version |
Find the path for user vimrc script (by default: $HOME/.vimrc)
And install the plugin using Vundle
1 |
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
Edit the vimrc script to enable plugin support
1 |
$ sudo vi $HOME/.vimrc |
Copy the following text into the .vimrc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' Plugin 'Valloric/YouCompleteMe' call vundle#end() |
Before saving the script, modify the path for the installation
From
1 |
"call vundle#begin('~/some/path/here') |
To
1 |
call vundle#begin('~/.vim/bundle/') |
Enter vim and install the plugin
1 2 |
$ vim :PluginInstall |
Install the YouCompleteMe package (–all for all language support, –clang-completer for C & C++)
1 2 |
$ cd ~/.vim/bundle/YouCompleteMe $ ./install.py --all |
Comment the script file, in case of vim error
1 |
$ sudo vi $HOME/.vimrc |
From
1 |
call vundle#begin('~/.vim/bundle/') |
To
1 |
"call vundle#begin('~/some/path/here') |