1:安装 Vundle(管理插件的工具)
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
2:安装插件
//打开vim的配置 vim ~/.vimrc //配置插件以及安装 set nocompatible filetype off map <C-n> :NERDTreeToggle<CR> set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'https://github.com/kien/ctrlp.vim.git' Plugin 'https://github.com/scrooloose/nerdtree.git' Plugin 'https://github.com/aperezdc/vim-template.git' call vundle#end() filetype plugin indent on //配置完毕后命令行执行 vim +PluginInstall +qall