vim Extending Vim Vundle


Vundle is a plugin manager for Vim.

Installing Vundle

(Full installation details can be found in the Vundle Quick Start)

  1. Install Git and clone Vundle into ~/.vim/bundle/Vundle.vim.

  2. Configure plugins by adding the following to the top of your .vimrc, adding or removing plugins as necessary (the plugins in the list are merely for illustration purposes)

     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'
     " All of your Plugins must be added before the following line
     call vundle#end()            " required
     filetype plugin indent on    " required
     " To ignore plugin indent changes, instead use:
     "filetype plugin on
     "place non-Plugin stuff after this line
  3. Install Plugins: by launching Vim and running :PluginInstall.

Supported Plugin Formats

The following are examples of different formats supported. Keep Plugin commands between vundle#begin and vundle#end.

Plugin LocationUsage
plugin on GitHubPlugin 'tpope/vim-fugitive'
plugin from 'L9'
Git plugin not hosted on GitHubPlugin 'git://'
git repos on your local machine (i.e. when working on your own plugin)Plugin 'file:///home/gmarik/path/to/plugin'
The sparkup vim script is in a subdirectory of this repo called vim. Pass the path to set the runtimepath properly.Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Install L9 and avoid a Naming conflict if you've already installed a different version somewhere else.Plugin 'ascenator/L9', {'name': 'newL9'}

Working on a shared account, for example, on cluster head node can raise issues from the point of disk usage by .vim directory. There are a couple of packages which take considerable amount of disk space, for example YCM. So please choose your Vundle plugin directory wisely, and its very easy to do so by setting rtp. And also if you are planning to install any vim plugin, don't directly do git clone in the bundle directory. Use the Vundle way.