vim安裝Vundle

確保你安裝了git


克隆


<code>git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim/<code>



修改~/.vimrc文件


在前面追加內容

<code>set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
call vundle#end() " required
filetype plugin indent on " required
/<code>

保存

安裝

先鍵入vim輸入

<code>:PluginInstall/<code>



靜靜等待。

看最後提示,如果出現了error這樣的字眼,那就代表失敗了。

如果你看到的是



OK,成功了。