NERDTree is a vim plugin that allows you to explore your filesystem/directories in the form of a tree.
NERDTree suggests that we should install it by using https://github.com/tpope/vim-pathogen. So, Let's install pathogen first.
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
Add the following settings to .vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
Then install NERDTree
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
Automatically opens NERDTree when vim starts up.
Add these settings to .vimrc
autocmd vimenter * NERDTree
[In NERDTree explorer]
o: To open sub-directories/files
s: Open new file in veritcal-slit window
i: Open new file in horizontal-split window
t: Open new file in new tab
gt: Navigate to next tab
gT: Navigate to previous tab