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.
- Go to :
https://github.com/scrooloose/nerdtree
- Clone the repo
git clone https://github.com/scrooloose/nerdtree.git
- Create a directory ,
mkdir ~/.vim
- Move the contents of the repo to the new directory created
mv /path/to/nerdtree-master/* ~/.vim/
- Now, open any file with vim and, first press
Esc
and then type ::NERDTree
and you are done! - To go out of NERDTree, press
Esc
and typeq
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