How to install NERDTree

In order to install NERDTree in "vim", we must follow these steps:

Required data

  • nerdtree repo = Nerdtree GIT repository
  • pathogen repo = Pathogen GIT repository

Sample data

Process

1. Install Pathogen

$ mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

2. Create a ".vimrc" file and insert the following text

execute pathogen#infect()
syntax on
filetype plugin indent on

let g:NERDTreeDirArrows=0
let NERDTreeShowHidden=1

3. Save the file ".vimrc"

4. Get int the file ".vimrc" and execute

a. <Press ESC>
b. :source ~/.vimrc
c. wq

5. Create a "bundle" folder inside ~/.vim

$ cd ~/.vim
$ mkdir bundle

6. Get into the bundle folder and execute the following command

git clone https://github.com/scrooloose/nerdtree.git

7. Open vim and execute

:NERDTree