如何删除 NERDTree (Vim) 中的书签?
我检查了文档但找不到它。有人知道吗?
I checked the documentation but couldn't find it. Does anybody knows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我检查了文档但找不到它。有人知道吗?
I checked the documentation but couldn't find it. Does anybody knows?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
您可以编辑
~/.NERDTreeBookmarks
文件并将其删除。You can edit the
~/.NERDTreeBookmarks
file and delete it there.将光标放在要删除的书签上,然后按 shift-d(即大写 D)。
如果您在 NERDTree 窗口中点击 ? 问号,您将找到相关文档。搜索“删除”。
Put your cursor over the bookmark you want to delete and hit shift-d (i.e. capital D).
If you hit ? question mark while in the NERDTree window you'll find the docs for this. Search for "delete".
不明显的是,您必须将光标放在“书签”部分中的书签上,而不是树本身内。因此,如果您还没有可见的书签,请按 B 键查看它们,然后将光标放在其中一个书签上,然后按 D 键将其删除。我在经历了一个月的沮丧之后才发现这一点:)
The non-obvious thing is you have to put your cursor over the bookmark in the "Bookmarks" section, not within the tree itself. So if you don't have bookmarks already visible, hit B to see them, then put your cursor over one of those, and hit D to remove it. I just figured this out after a month of frustration :)
:NERDTree
前往 NERDTree 查找书签,:D
:NERDTree
:D
您可以使用 NERDTree 命令:
:ClearBookmarks []
或
Ctrl-w
将光标移至 NERDTree 窗口,输入 < code>B 如果您的书签表未显示,请在书签表中选择要删除的书签,输入D
(即shift + d
)< strong>或
vim ~/.NERDTreeBookmarks
然后删除要删除的行仔细阅读文档
:h NERDTree
You can use NERDTree command:
:ClearBookmarks [<bookmark-name>]
or
Ctrl-w
move your cursor to NERDTree window, typeB
if your bookmark table is not displayed, select the bookmark you want to delete in the bookmark table, typeD
(i.e.shift + d
)or
vim ~/.NERDTreeBookmarks
then delete the line which you want to deleteRead the documentation
:h NERDTree carefully