How to create a directory using nerdtree

Nick Vanderbilt picture Nick Vanderbilt · May 22, 2010 · Viewed 27.8k times · Source

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.

Answer

housetier picture housetier · May 22, 2010

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.