Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.