在 Vim 上使用 NERDTree 重命名或复制文件和文件夹。是否可以?

发布于 2024-08-22 22:49:19 字数 51 浏览 9 评论 0原文

我检查了文档,但找不到使用 NERDTree 重命名或复制文件和文件夹的方法。是否可以?

I checked the documentation and I couldn't find a way o renaming or copying files and folder using NERDTree. Is it possible?

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

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

发布评论

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

评论(2

夏见 2024-08-29 22:49:19

在您想要的节点上按 m,然后选择(m)跳过当前节点。移动与重命名相同。

NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
> (a)dd a childnode
  (m)ove the curent node
  (d)elete the curent node
  (c)copy the current node

Press m on the node you want to then select (m)ove the current node. Moving is the same as renaming.

NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
> (a)dd a childnode
  (m)ove the curent node
  (d)elete the curent node
  (c)copy the current node
另类 2024-08-29 22:49:19

https://github.com/scrooloose/nerdtree/blob/master/ doc/NERDTree.txt,最新版本有:

2.3。 NERD 树菜单 NERDTreeMenu NERD 树有一个菜单,可以通过
API(参见 |NERDTreeMenuAPI|)。这个想法
就是模拟“右键”菜单
大多数文件浏览器都有。这
脚本带有两个默认菜单
插件:exec_menuitem.vim 和
fs_menu.vim。 fs_menu.vim 添加了一些
基本文件系统操作
菜单
创建/删除/移动/复制文件
和目录。 exec_menuitem.vim 提供了
执行可执行文件的菜单项。

https://github.com/scrooloose/nerdtree/blob/master/doc/NERDTree.txt, the latest version has it:

2.3. The NERD tree menu NERDTreeMenu The NERD tree has a menu that can be programmed via the an
API (see |NERDTreeMenuAPI|). The idea
is to simulate the "right click" menus
that most file explorers have. The
script comes with two default menu
plugins: exec_menuitem.vim and
fs_menu.vim. fs_menu.vim adds some
basic filesystem operations to the
menu for
creating/deleting/moving/copying files
and dirs. exec_menuitem.vim provides a
menu item to execute executable files.

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