我试图将NERDTree添加到我的RHEL机器中,在.vimrc中添加以下行,然后将NERD_tree.vim放在插件文件夹中。
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p问题是我能够在Mac中使用这些命令运行它,但是RHEL抛出了这个错误:
Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree有人能帮我解决这个错误吗?
发布于 2014-09-23 08:30:00
当:NERDTree也不能工作时,这意味着插件没有正确安装。
要排除故障,请检查:scriptnames的输出;它必须列出.../plugin/NERD_tree.vim (在您放置它的位置),并验证'runtimepath'的值,特别是如果您使用插件管理器(如病原体、Vundle等)。
发布于 2018-12-27 09:19:48
可能还没有安装包管理器pathogen.vim。
运行:
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim然后将以下行添加到.vimrc中
execute pathogen#infect()
syntax on
filetype plugin indent onhttps://stackoverflow.com/questions/25990126
复制相似问题