Skip to content

Instantly share code, notes, and snippets.

@shiveshabhishek
Last active July 5, 2024 11:23
Show Gist options
  • Save shiveshabhishek/95169bdc96357569334538d6be522a1b to your computer and use it in GitHub Desktop.
Save shiveshabhishek/95169bdc96357569334538d6be522a1b to your computer and use it in GitHub Desktop.
Setup NERDTree in your VIM editor

The NERDTree is a file system explorer for the Vim editor. Using this plugin, users can visually browse complex directory hierarchies, quickly open files for reading or editing, and perform basic file system operations.

To install NERDTree

  1. Go to : https://github.com/scrooloose/nerdtree
  2. Clone the repo git clone https://github.com/scrooloose/nerdtree.git
  3. Create a directory , mkdir ~/.vim
  4. Move the contents of the repo to the new directory created mv /path/to/nerdtree-master/* ~/.vim/
  5. Now, open any file with vim and, first press Esc and then type : :NERDTree and you are done!
  6. To go out of NERDTree, press Esc and type q

Note: If you want NERDTree to every time with VIM editor, Make a file vi .vimrc Add this line to always open VIM with NERDTree: autocmd VimEnter * NERDTree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment