Vim

Vim: Configure Your Vimrc

Good reference to configure you vim: https://dougblack.io/words/a-good-vimrc.html

Advertisements

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