先生们,当我尝试安装 NERDTree 时,出现以下错误,有什么建议吗?从 AWS Amazon linux ami 运行:
drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:33 autoload
drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:23 doc
drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:23 nerdtree_plugin
drwxrwxr-x 3 ec2-user ec2-user 4096 Apr 2 10:23 plugin
-rw-rw-r-- 1 ec2-user ec2-user 4800 Apr 2 10:23 README.markdown
drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:23 syntax
[ec2-user@ip-10-194-186-112 nerdtree]$ rake
/usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require': cannot load such file -- rake (LoadError)
from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'
from /usr/bin/rake:30:in `<main>'
答案1
说明已改变....
安装 Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
安装 Nerd Tree
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
:NERDTree
您可能需要将以下内容添加到 .vimrc:
execute pathogen#infect()
syntax on
filetype plugin indent on