如何删除 NERDTree (Vim) 中的书签?

发布于 2024-08-19 13:22:01 字数 25 浏览 7 评论 0原文

我检查了文档但找不到它。有人知道吗?

I checked the documentation but couldn't find it. Does anybody knows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

南街女流氓 2024-08-26 13:22:01

您可以编辑 ~/.NERDTreeBookmarks 文件并将其删除。

You can edit the ~/.NERDTreeBookmarks file and delete it there.

七度光 2024-08-26 13:22:01

将光标放在要删除的书签上,然后按 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".

风情万种。 2024-08-26 13:22:01

不明显的是,您必须将光标放在“书签”部分中的书签上,而不是树本身内。因此,如果您还没有可见的书签,请按 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 :)

趁微风不噪 2024-08-26 13:22:01
  1. 首先,您可以通过输入 :NERDTree 前往 NERDTree 查找书签,
  2. 然后将光标移至书签名称,选择后输入 < strong>:D
  3. 您将收到警告:您确定要删除书签吗:“MYBOOKMARK”(yN):
  4. 做出选择,输入 y 表示是,N 表示否。
  1. First you go to NERDTree to find the bookmark by typing :NERDTree
  2. Next, move your cursor to your bookmark's name, once this is selected type :D
  3. You'll get a warning: Are you sure you wish to delete the bookmark: "MYBOOKMARK" (yN):
  4. Make your choice, type y for yes or N for No.
心奴独伤 2024-08-26 13:22:01

您可以使用 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, type B if your bookmark table is not displayed, select the bookmark you want to delete in the bookmark table, type D (i.e. shift + d)

or

vim ~/.NERDTreeBookmarks then delete the line which you want to delete

Read the documentation :h NERDTree carefully

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文