Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to install NERDTree (I'm on 32-bit Win 7, anyway).

And to make vim plugins management easier, pathogen needs to be installed first. So here's the steps:

  1. Take pathogen.vim and put it on C:\vim\vim73\autoload

  2. Make the 'bundle' directory (C:\vim\vimfiles\bundle)

  3. Do 'git clone https://github.com/scrooloose/nerdtree.git' in the bundle directory

  4. Put this line in your .vimrc: execute pathogen#infect()

Of course, every time you run gvim, NERDTree will also run, because it's invoked by pathogen and pathogen is autoloaded. Sometimes I find this to be annoying. So is there any way to make NERDTree to be able to run manually? But I do not want to remove pathogen because with it plugin removal is so easy: just get ride the plugin directory from 'bundle'.

share|improve this question

Are you asking if you can avoid having NERDTree run on start, or are you asking how to start it manually if you've closed it after the first start?

If the latter, you can run NERD tree manually via

:NERDTreeToggle

which opens the current directory

or

:NERDTreeFind

Which will open the tree up to the current file.

Handy mappings, so the first is "\" and the second is "|":

map \           :NERDTreeToggle<CR>
map \|          :NERDTreeFind<CR>

I'm assuming that these bindings will work on Windows, but I don't have a windows box handy to test it.

share|improve this answer
    
What I actually want is being able to load plugins (in this case: NERDTree) via pathogen manually. So it won't run on start, and once I close it I can run it again. :NERDTreeToggle and :NERDTreeFind don't work here, because it was installed via pathogen, and not the standard way of installing plugins (copying files to plugin, ftplugin, doc, etc) – anta40 May 25 '13 at 2:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .