Last Updated: February 25, 2016
·
893
· Chao Yang

Manage vim scripts with vundle.

There are lots of vim scripts, for syntax, indent, or color scheme somethin. But manage(install/upgrade/remove) so many scripts really boring. vbundle rocks !

The basic of vundle is to use github to manage the vim script. Let's see how can we make it works.

  1. get the vundle from github:

    $ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  2. config vundle, add these lines to your ~/.vimrc:

    set nocompatible               " be iMproved
    filetype off                   " required!
    
    set rtp+=~/.vim/bundle/vundle/
    call vundle#rc()
    
    " let Vundle manage Vundle
    " required! 
    Bundle 'gmarik/vundle'
    
    " My Bundles here:
    "
    " original repos on github
    
    " vim-scripts repos
    
    " non github repos
    
    filetype plugin indent on     " required!
    "
    " Brief help
    " :BundleList          - list configured bundles
    " :BundleInstall(!)    - install(update) bundles
    " :BundleSearch(!) foo - search(or refresh cache first) for foo
    " :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
    "
    " see :h vundle for more details or wiki for FAQ
    " NOTE: comments after Bundle command are not allowed..
  3. find the scripts you need, before we use:

    http://www.vim.org/scripts/script_search_results.php

to search and download .vim and place them in ~/.vim/plugin/.

Now, we just need to find the git repo for the script from:

http://vim-scripts.org/vim/scripts.html

Then add the repo url to ~/.vimrc file, like:

Bundle 'Lokaltog/vim-easymotion'
  1. execute "BundleInstall" from an opening vim:

    BundleInstall vim-easymotion
  2. All done. Enjoy.