How to install nerdtree plugin on linuxmint for vim74

Prakhar picture Prakhar · Feb 5, 2015 · Viewed 21.1k times · Source

I am relatively new to the linux world and have started recently exploring the options it provides and I am fascinated by the power of vim editor.I have recently installed vim74 (the latest version of vim editor for linux)on my mintlinux machine. And tried tutorials that ship along with it and i am pretty comfortable with them.

Now, I want to add a new plugin called NERDTree for vim. I have gone through a lot of examples on google to search for a proper tutorial on the same but I see that they point to a relatively different file structure (Probably those tutorials were made for a different version of vim, if I understand it correctly) and that confuses me.

As I understand there is a plug-in manager called pathogen for vim which has to be placed in autoload directory under vim. But I don’t see any such directory called "autoload".

After doing hours of researches and ending up completely confused on what to do I have decided to ask this question.

Please help me or provide me some reference which i can follow for this latest version (vim74).

Please let me know if I should provide any more details.

Answer

ChaosPredictor picture ChaosPredictor · Sep 25, 2016

step1: First install pathogen

Pathogen

step2: run it in the terminal

git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree

source

step3: if you what to open a NERDTree automatically when vim starts up add:

autocmd vimenter * NERDTree

to your .vimrc file in (~/.vimrc). from same source as step 2