從 pathogen.vim 換成 Vundle...

pathogen.vimgit submodule 用到有點煩了... 改用 Vundle 避開 pathogen.vim 使用 git submodule 帶來的維護問題...

Vundle 的安裝方法很簡單 (網路上其實也有不少說明了),先 clone 或是 submodule add 下來:

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

然後在 .vimrc 內加入:

filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle '其他的 github 位置...'
filetype plugin indent on

接下來開 vim,跑 :BundleInstall 他就會自己安裝其他的套件了。要增加套件就加到 .vimrc 內再跑一次 :BundleInstall 就可以了。

3 thoughts on “從 pathogen.vim 換成 Vundle...”

Leave a Reply

Your email address will not be published. Required fields are marked *