2

I have only one plugin at the moment (CtrlP) and I don't want to polute my environment with additional stuff that I'll have to depend on.

So I tried installing NERDTree directly (cloned from git in .vim/bundle), but I get error after error, for example I added:

autocmd VimEnter * NERDTree

to .vimrc and I got:

Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree`.

So I gave up at the end and now I'm using the simple :edit.

The thing is - can I manually install NERDTree - or any plugin at all - directly?

  • 2
    .vim/bundle is a pathogen thing. If you already installed CtrlP without pathogen you simply have to do the same for nerdtree. – romainl Nov 30 '16 at 14:32
  • 5
    With Vim8 simply clone it to ~/.vim/pack/dist/start/nerdtree – Christian Brabandt Nov 30 '16 at 14:46
2

You can either manually do what Pathogen does for you:

set runtimepath+=~/.vim/bundle/nerdtree

Or, you can go back to the Stone Age and copy everything in that folder to ~/.vim.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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