Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create folders in Vim (by preference using NERDTree)?

Tags:

directory

vim

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.

Does anybody know how to do this on NERDTree (or just in vim's native "way")?

like image 790
alexchenco Avatar asked Jun 23 '10 13:06

alexchenco


People also ask

How do I create a folder in NERDTree?

Creating a New File or Directory using NERDTreePress m to bring up the NERDTree Filesystem Menu. This menu allows you to create, rename, and delete files and directories. Type a to add a child node and then simply enter the filename. You're done!

How do I change the current directory in NERDTree?

If you're inside the NERDTree buffer you can select the folder and press C to change the NERDTree root directory.

What is a vim folder?

Virtualmachine", "vim. VirtualApp" } - Identifies a virtual machine folder. A virtual machine folder may contain child virtual machine folders. It also can contain VirtualMachine managed objects, templates, and VirtualApp managed objects.


2 Answers

You use m + a and put a trailing / on the name of the child node you want to create.

E.g., m + a + foo creates the file foo. m + a + foo/ creates the directory foo.

like image 94
jamessan Avatar answered Sep 19 '22 04:09

jamessan


Well, you can always do:

:!mkdir <directory> 

Does that help?

like image 41
psmears Avatar answered Sep 19 '22 04:09

psmears