缺少 NERDTree 命令
我对 vim 比较陌生,并且对 NERDTree 有一个问题,我似乎无法弄清楚。
我似乎缺少一大堆命令,因此当我将它们映射到键时,我收到消息(例如)
不是编辑器命令:NERDTreeMapToggleBookmarks
如果我运行:command我可以看到其中的所有NERDTree全局命令(那些在文档的第 2.1 节)这些似乎都有效,但仅此而已。
我正在使用 NERDTree 4.1.0,它是我从 github 存储库下载的。 我怀疑我可能在设置插件时错过了一个步骤,或者在我的 .vimrc 中遗漏了一些东西,但我有点不知所措。
有人有任何指点吗?就像我说的,我是 vim 新手,所以这可能是非常愚蠢或明显的事情! ;)
非常感谢
I am relatively new to vim and have an issue with NERDTree that I can't seem to figure out.
I seem to be missing a whole bunch of commands so when I map them to keys, I get the message (for example)
Not an editor command: NERDTreeMapToggleBookmarks
If I run :command I can see all the NERDTree global commands in there (those in section 2.1 of the docs) and these all seem to work but that's it.
I am using NERDTree 4.1.0 which I downloaded fresh from the github repo.
I suspect I may have either missed a step when setting up the plugin or am missing something in my .vimrc but I am at a bit of a loss.
Anyone have any pointers? Like I say, I am new to vim so it could be something really stupid or obvious!! ;)
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将 Vundle 更新到新界面后,我遇到了同样的问题。
确保您有
并
包装您的插件调用。
I had the same issue after updating Vundle to the new interface.
Make sure you have
and
wrapping your Plugin calls.
我最近遇到了类似
Not an editor command: NERDTree*
的错误。对我来说,破坏它的是将我的 vimrc 中的call vundle#rc()
行更改为call vundle#begin()
因为这就是我在 Vundle 自述文件。切换回来解决了这个问题。I recently ran into errors like
Not an editor command: NERDTree*
. What broke it for me was changing the linecall vundle#rc()
in my vimrc tocall vundle#begin()
because that's what I saw being used in the Vundle README. Switching back fixed the issue.我已经使用这个插件很长时间了。我已经检查过了,我的 ./plugins 目录中只有一个文件,我的 .vimrc 配置中只有 2 行。
仅此而已。
I am using this plugin for a long time. I have checked it and there is only one file in my ./plugins directory and 2 lines in my .vimrc configuration.
And that is all.