Vim Bundles

This blog posts has instructions to boost up Vim.

Let’s install latest vim from source

Download it, the latest is 7.4.

follow the below steps:

#untar it
tar xvjf vim-7.4.tar.bz2
cd vim74/src/
#configure it, I am enabling python support as it will be needed while Installing YouCompleteMe
./configure --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config
make
sudo make install

Now let’s install some Vim Plugins using vundle 

You can open your vimrc using

vim ~/.vimrc

Paste this is in your .vimrc.

inside vimrc
syntax on
set clipboard=unnamed
set number
set tabstop=4 shiftwidth=4 expandtab
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Valloric/YouCompleteMe'
filetype plugin indent on

Download Vundle, using

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Now let’s download and install our first boost up for vim, YouCompleteMe

git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe
cd ~/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
./install.sh --clang-completer

Now to install, do

vim +BundleInstall +qall

Now some more stuff that I use:

Vundle : You also use this now.

To install any of these

cd ~/.vim/bundle
git clone <the git url for the plugin to be installed>
#add this to .vimrc
Bundle <github username/project or plugin name>
#go to terminal and install using
vim +BundleInstall +qall
#You can also install this by typing this in vim
:PluginInstall

Vimawesome.

Advertisements

One thought on “Vim Bundles

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s