如何在Vim中创建文件夹(优选使用NERDTree)? [英] How to create folders in Vim (by preference using NERDTree)?
本文介绍了如何在Vim中创建文件夹(优选使用NERDTree)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何在 NERDTree 中创建重命名,删除和移动文件(只需按 m,然后按[a,d或m]
)。但是我不知道如何创建一个文件夹。
I know how to create rename, delete and move files in NERDTree (just pressing m then either [a, d, or m]
). But I can't figure out how to create a folder.
有人知道如何在 NERDTree 上(或者只是在vim的本机中)
Does anybody know how to do this on NERDTree (or just in vim's native "way")?
推荐答案
您使用 m + a
并放入在要创建的子节点的名称上尾随 /
。
You use m + a
and put a trailing /
on the name of the child node you want to create.
例如, m + a + foo
创建文件 foo
。 m + a + foo /
创建目录 foo
。
E.g., m + a + foo
creates the file foo
. m + a + foo/
creates the directory foo
.
这篇关于如何在Vim中创建文件夹(优选使用NERDTree)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文