2014年1月17日 星期五

[VIM] How to install vundle by script


1. Download Script and write into
~/.vimrc  or ~/.vim/vimrc

Script


" Setting up Vundle - the vim plugin bundler
    let iCanHazVundle=1
    let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
    if !filereadable(vundle_readme)
        echo "Installing Vundle.."
        echo ""
        silent !mkdir -p ~/.vim/bundle
        silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
        let iCanHazVundle=0
    endif
    set rtp+=~/.vim/bundle/vundle/
    call vundle#rc()
    "Add your bundles here
        Bundle 'tpope/vim-fugitive'
        Bundle 'Lokaltog/vim-easymotion'
        Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
        Bundle 'tpope/vim-rails.git'
        " vim-scripts repos
        Bundle 'L9'
        Bundle 'FuzzyFinder'
        " non-GitHub repos
        Bundle 'git://git.wincent.com/command-t.git'
        " Git repos on your local machine (i.e. when working on your own plugin)
        Bundle 'file:///Users/gmarik/path/to/plugin'
        " ...
        Bundle 'ervandew/supertab'
        Bundle 'vim-scripts/taglist.vim'
        Bundle 'mileszs/ack.vim'
        Bundle 'kien/ctrlp.vim'
        Bundle 'scrooloose/syntastic'
        Bundle 'scrooloose/nerdtree'
        Bundle 'rstacruz/sparkup'
        Bundle 'dyng/ctrlsf.vim'
        Bundle 'vim-scripts/DirDiff.vim'
        Bundle 'charz/multi-cscope-db'

        "Bundle 'Valloric/YouCompleteMe'

    "...All your other bundles...
    if iCanHazVundle == 0
        echo "Installing Bundles, please ignore key map error messages"
        echo ""
        :BundleInstall
    endif
" Setting up Vundle - the vim plugin bundler end

2. Start to Install

vim +BundleInstall +qall

Reference:

Related Posts:

0 意見:

張貼留言