Vim: NERDTree如何创建/重命名/移动文件/目录

7
我查看了关于NERDTree的文档,但没有找到在浏览目录树时创建新文件/目录或重命名/移动它的方法。

netrw插件中很容易实现,但由于NERDTree已经取代了它,所以我不想回头使用。

有人可以指导我正确的方向吗?


1
将光标放在nerdTree窗口中,按下“m”键,您将获得提示。 - harris
每当你在寻找某些东西时,只需按下“?”键。这将带出Nerdtree帮助,你可以轻松地通过“/”键进行搜索。 - Frederic Close
1
@FredericClose 我按了它,但我没有注意到有“显示菜单”选项,因为这与文件复制/移动等在我的头脑中不相关。 - Peter Butkovic
1个回答

11

这个功能有点隐藏在菜单后面(参见:help NERDTreeMenu),但好处是它是可扩展的。默认情况下,它使用m键启动(对于当前文件节点)。

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.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接