-
First, as some plugins used in this configuration (as Ultisnips) require Python support, make sure your Vim version comes with python support by typing the Vim exec
:version
command and checking if there is+python
or+python3
in its output.If your Vim does not support python, you will have to either recompile Vim from sources or install the
gvim
package. Indeed, on GNU/Linux distributions the gvim package is typically linked against python (checked on Debian and ArchLinux based distributions). -
Clone this repository
git clone https://github.com/wget/dotvim.git ~/.vim
-
Create symlinks
$ ln -s ~/.vim/vimrc ~/.vimrc
-
Install Vundle, the Vim plugin manager
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
-
Start Vim, type
:BundleInstall
, press return and wait for all plugin repositories to be cloned.OPTIONAL:
-
As vim-airline is using special symbols, you'll have to patch/replace the font you are using in your terminal emulator.
An already patched pack of fonts can be obtained here.
If you're using ArchLinux or any derivative, install the "powerline-fonts-git" package from AUR, and choose any font with "for Powerline" in its name in your terminal emulator.
-
As the plugin YouCompleteMe is using native code (C compiled), you will have to compile the code that has just been cloned.
First, make sure you have a valid compiler already installed (gcc recommended). Then, go to the plugin directory
$ cd .vim/bundle/YouCompleteMe/
and execute the shell script:
$ ./install.sh
Use the flag
--clang-completer
if you want support for C-family languages; the install script will download thelibclang
dependency for you.Use the flag
--omnisharp-completer
for C#. This requiresmsbuild
orxbuild
. Xbuild is provided withmono
on Linux.Then follow the YouCompleteMe user guide. Indeed you need to provide compilation flag in order to provide autocompletion for functions/variables defined in your project.
Edit the vimrc configuration file, add a statement like this one
Bundle GITHUB_USERNAME/NAME_OF_PROJECT
type
:BundleInstall
and press return.
Edit the vimrc configuration file, remove a statement like this one
Bundle GITHUB_USERNAME/NAME_OF_PROJECT
type
:BundleClean
and press return.