**:
1安裝git clone ~/.vim/bundle/vundle
2更新.vimrc
set nocompatible " be improved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let vundle manage vundle
" required!
bundle 'gmarik/vundle'
" 可以通過以下四種方式指定外掛程式的**
" a) 指定github中vim-scripts倉庫中的外掛程式,直接指定外掛程式名稱即可,外掛程式明中的空格使用「-」代替。
bundle 'l9'
「 b) 指定github中其他使用者倉庫的外掛程式,使用「使用者名稱/外掛程式名稱」的方式指定
bundle 'tpope/vim-fugitive'
bundle 'lokaltog/vim-easymotion'
bundle 'rstacruz/sparkup',
bundle 'tpope/vim-rails.git'
" c) 指定非github的git倉庫的外掛程式,需要使用git位址
bundle 'git:'
" d) 指定本地git倉庫中的外掛程式
bundle 'file:///users/gmarik/path/to/plugin'
filetype plugin indent on " required!
3安裝外掛程式
vim下之行 :bundleinstall
4. 解除安裝外掛程式
如果要解除安裝外掛程式就只需要刪除.vimrc中的bundle,然後在vim中執行
:bundleclean
ps::bundlelist -列舉列表(也就是.vimrc)中配置的所有外掛程式
:bundleinstall -安裝列表中的全部外掛程式
:bundleinstall! -更新列表中的全部外掛程式
:bundlesearch foo -查詢foo外掛程式
:bundlesearch! foo -重新整理foo外掛程式快取
:bundleclean -清除列表中沒有的外掛程式
:bundleclean! -清除列表中沒有的外掛程式
set nocompatible " be improved
filetype off " required! /** 從這行開始,vimrc配置 **/
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let vundle manage vundle
" required!
bundle 'gmarik/vundle'
" my bundles here: /* 外掛程式配置格式 */
"" original repos on github (github**上非vim-scripts倉庫的外掛程式,按下面格式填寫)
bundle 'tpope/vim-fugitive'
bundle 'lokaltog/vim-easymotion'
bundle 'rstacruz/sparkup',
bundle 'tpope/vim-rails.git'
" vim-scripts repos (vim-scripts倉庫裡的,按下面格式填寫)
bundle 'l9'
bundle 'fuzzyfinder'
" non github repos (非上面兩種情況的,按下面格式填寫)
bundle 'git:'
" ...
filetype plugin indent on " required! /** vimrc檔案配置結束 **/
" /** vundle命令 **/
" brief help
" :bundlelist - list configured bundles
" :bundleinstall(!) - install(update) bundles
" :bundlesearch(!) foo - search(or refresh cache first) for foo
"" see :h vundle for more details or wiki for faq
" note: comments after bundle command are not allowed..
附:參考文獻
**
vundle管理VIM外掛程式
1.win7安裝git 2.安裝vundle 開始,執行git bash 3.設定 可選,windows可用,linux不可用,原因未知 5 配置.vimrc vi vim bundle vundle readme.md vimrc p 複製 7 填寫所需的外掛程式,高亮外掛程式 visualmar...
Vim外掛程式管理Vundle
vim外掛程式管理vundle haitongz 思考改變世界,技術讓世界更美好 部落格頻道 csdn.net 分類 vim 2012 01 14 07 20 146人閱讀收藏 舉報之前很少使用vim的外掛程式,最近打算把程式設計環境遷移到vim下,因此不能不考慮這些外掛程式。看了些資料,發現每個外...
VIM外掛程式管理 vundle
用了vundle管理vim各種外掛程式,就再也不用擔心外掛程式混亂的問題了。vundle專案 安裝和配置主頁上都有。vundle主要是利用git,來處理自動安裝,更新和解除安裝外掛程式,所以首先需要安裝git。通過vundle主頁給的.vimrc示例,可以知道安裝外掛程式有4種方式 bundle t...