Nerdtree: Can I make NerdTree available always at left?

Created on 23 Sep 2012  路  8Comments  路  Source: preservim/nerdtree

I want to see NERDTree window at the left of the editor window right from the time I start VIM. Is it currently possible? How can I do so?

Most helpful comment

In case somebody is looking for an answer now: you can set let g:NERDTreeWinPos = "left" in .vimrc

All 8 comments

@jistr has a very nice plugin I've been using that always opens a nerdtree by default. It also does a handful of other useful things like auto mirroring, sane window titles, etc. You might give it a try: jistr/vim-nerdtree-tabs

If you really don't want the mirroring (the main feature I guess) there is an option in nerdtree you can set to have it auto open a nerdtree buffer on open.

autocmd vimenter * if !argc() | NERDTree | endif

However, it won't do that automatically for new tabs; that's easy enough though to do with an auto command for TabEnter, similar to the snippet above.

Have a blessed day!
~ Jonathan Martin

If this has solved your problem, please close this issue.

NERDTree has defaults not meeting expectations of those from Visual Studio world. Nothing works as expected. DIY product, as most of OSS.
Here鈥檚 my $500 spent聽.vimrc for NERDTree: https://gist.github.com/avesus/1954d9384d86cc1e39cb2b2eff7017b7

There's not really an issue here. No real problems with the NERDTree are reported that we can fix. Everything here can be addressed with proper configuration on the user's end.

For this reason, this issue is closed.

In case somebody is looking for an answer now: you can set let g:NERDTreeWinPos = "left" in .vimrc

@TwelveNights, that doesn't answer the original question. The setting you mention only controls where the NERDTree window opens, not when it opens.

@lifecrisis

Ahhh, I see. I'm surprised they asked about that then, since the README contains those instructions already lol

In case somebody is looking for an answer now: you can set let g:NERDTreeWinPos = "left" in .vimrc

And you better add that line at the end of your .vimrc file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

milushov picture milushov  路  4Comments

kristijanhusak picture kristijanhusak  路  3Comments

nicknisi picture nicknisi  路  5Comments

sunnyguan picture sunnyguan  路  4Comments

yuanjianpeng picture yuanjianpeng  路  5Comments