VIM: Create New File/Folder in NERDTree

Days 2 using vim as my editor. NERDTree is very important plugin that you have to install to your VIM for exploring your project files.
Here are how to create file/folder through NERDTree. Once you opening NERDTree, then press “m”, it will show you these options.

NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
> (a)dd a childnode
  (m)ove the current node
  (d)elete the current node
  (c)opy the current node
  (l)ist the current node

After that you just need to press “a” to add new file/folder, and it will show you this prompt.

==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/your/current/project/path/

Then type your filename or folder. Bear in mind, if you adding “/” to your name it will create you a folder, otherwise it will create a new file.

Reference: https://gistpages.com/posts/vim_create_a_file_or_folder_in_nerdtree

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s