5

I'm using Janus for Vim customizations.

One thing that bothers me is that it opens NERD Tree in a separate buffer on start. I don't want to disable NERD Tree completely. Just want to not get it opened on start.

Is there a way without tweaking the internals of Janus?

iltempo
  • 15,718
  • 8
  • 61
  • 72

2 Answers2

4

Finally figured it out based on the Janus configuration mentioned by @romanl.

I had to add to ~/.vimrc.after

augroup AuNERDTreeCmd
  autocmd!
augroup end
iltempo
  • 15,718
  • 8
  • 61
  • 72
-1

Yet another "plugin distribution for Vim" user who chose to give complete control over his Vim configuration to someone else and has no idea how to change the default behaviour. Yeah, "easy" is so better than "hard".

This behaviour is probably defined in an autocmd, somewhere in your "janus" directory or whatever it uses to store its things. Maybe here.

You should probably take this as an opportunity to rethink your choice, drop Janus entirely and adopt a saner configuration strategy.

If you are the one adding/removing stuff to your ~/.vimrc and installing plugins, you simply can't find yourself in such a situation.

romainl
  • 186,200
  • 21
  • 280
  • 313
  • 1
    I decided against building all configuration by my own for a good reason. The problem with most vim users is that everyone is using different settings that makes it pretty hard to do pair programming for example. As long as there is no need, I prefer using something more general. – iltempo Dec 23 '12 at 17:34
  • And no, I didn't find any `autocmd` related to NERD Tree. – iltempo Dec 23 '12 at 17:35
  • Did you follow the link in my answer? It sure looks like a NERDTree-related `autocmd` to me. How would janus help in any way? It's just someone else's configuration. If you can't deal with a pair's custom config what are the chances that he can deal with your janus based config either? – romainl Dec 23 '12 at 18:45
  • Thanks, but that doesn't help me so far. – iltempo Dec 23 '12 at 20:01
  • Comment that line and the automatic nerdtree will be gone. Look around for other NERDTree-related stuff just in case. – romainl Dec 23 '12 at 20:27