1 从GitHub下载官方NERDTree发布包,地址:https://github.com/preservim/nerdtree
wget https://github.com/preservim/nerdtree/archive/4.2.0.tar.gz
2 用tar解压。作者解压后得到的目录是:nerdtree-4.2.0
tar zxvf 4.2.0.tar.gz
3 进入nerdtree-4.2.0目录
cd nerdtree-4.2.0
4 拷贝安装NERDTree插件
cp plugin/NERD_tree.vim ~/.vim/plugin
5 运行vim,输入“:NERDTree”命令查看效果