我查看了关于
NERDTree
的文档,但没有找到在浏览目录树时创建新文件/目录或重命名/移动它的方法。
在netrw
插件中很容易实现,但由于NERDTree
已经取代了它,所以我不想回头使用。
有人可以指导我正确的方向吗?
NERDTree
的文档,但没有找到在浏览目录树时创建新文件/目录或重命名/移动它的方法。
在netrw
插件中很容易实现,但由于NERDTree
已经取代了它,所以我不想回头使用。
有人可以指导我正确的方向吗?
这个功能有点隐藏在菜单后面(参见: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.