建好相关的目录,有就不用建了mkdir -p ~/.vim/autoload ~/.vim/bundle用curl下载,其它方式也可以curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vimvim ~/.vimrc 在vimrc加上execute pathogen#infect()安装NERDTreecd ~/.vim/bundlegit clone https://github.com/scrooloose/nerdtree.git好了。参考:https://github.com/tpope/vim-pathogenhttps://github.com/scrooloose/nerdtree