Installation
Install to ~/.vim/autoload/pathogen.vim. Or copy and paste:git
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
If you're using Windows, change all occurrences of ~/.vim to ~\vimfiles.github
要安裝新插件,只須要下載該插件,並將其放到~/.vim/bundle/目錄下便可。
假設要下載安裝NERDTree插件,只須要進入到~/.vim/bundle/目錄,而後執行如下命令:
git clone http://github.com/scrooloose/nerdtree.git
而要卸載該插件也很是簡單,只須要在~/.vim/bundle/目錄下刪除nerdtree目錄便可
要更新該插件到最新版本,只須要進入到該目錄~/.vim/bundle/nerdtree/,並執行如下命令:vim
git pull origincurl
安裝YouCompleteMeurl
git clone --recursive https://github.com/Valloric/YouCompleteMe.git插件