First, bring up NERDTree and navigate to the directory where you want to create the new file. Press 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! To create a directory follow the same steps but append a / to the filename.
Creating a New File or Directory using NERDTree
First, bring up NERDTree and navigate to the directory where you want to create the new file. Press
m
to bring up the NERDTree Filesystem Menu. This menu allows you to create, rename, and delete files and directories. Typea
to add a child node and then simply enter the filename. You’re done! To create a directory follow the same steps but append a/
to the filename.Props to @soofaloofa for summarising this in https://sookocheff.com/post/vim/creating-a-new-file-or-directoryin-vim-using-nerdtree/ ❤️
Using it:![image](https://user-images.githubusercontent.com/194400/51523312-53cad080-1e23-11e9-85c3-956a50afb7e8.png)