简体   繁体   English

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

[英]vim: NERDTree how to: create/rename/move file/directory

I checked the documentation of NERDTree , but didn't find the way to create new file/directory or rename/move it (once I'm browsing directory tree). 我检查了NERDTree的文档,但没有找到创建新文件/目录或重命名/移动它的方法(一旦我浏览目录树)。

In the netrw plugin it would be easy, but this one is not used any more as NERDTree just replaced it. netrw插件中它很容易,但是这个不再使用,因为NERDTree只是替换它。 And I don't want to look back. 我不想回头看。

Anyone ready to point me to the right direction? 有人准备指出我正确的方向吗?

It's a little bit hidden behind a menu (see :help NERDTreeMenu ), but as an upside it is extensible. 它有点隐藏在菜单后面(参见:help NERDTreeMenu ),但作为一个好处,它是可扩展的。 It is launched (for the current file node) with the m key by default. 默认情况下,使用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. 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM