How to create a directory using nerdtree

nerdtreevim

I have been using NERDTree for a while. Every time I need to create a new directory I need to go to terminal. Is there a quick and easy way to create a directory using NERDTree.

I read the doc but could not find anything.

Best Answer

When in the NERDTree window, press 'm'; you should see a menu at the bottom. Type in 'a' for add childnode. Now input the directory you want to create, making sure to add a '/' at the end, otherwise the script would create a file.

AFAIK NERDTree cannot create parent directories like 'mkdir -p' does.