Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make NERDTree always open on the right side?

Tags:

vim

nerdtree

NERDTreeToggle always makes it show up on the left side. I'd like to make it show up on the right. Is it possible to do that?

like image 559
Running Turtle Avatar asked Feb 25 '11 10:02

Running Turtle


People also ask

How do I change the drive in NERDTree?

If you're inside the NERDTree buffer you can select the folder and press C to change the NERDTree root directory.

How do you toggle NERDTree?

Save the changes, open Vim, and then toggle NERDTree with Ctrl + n .

How do you use NERDTree tabs?

It seems like nerdtree is only open within 1 tab, so by switching to the other, the dir tree disappears. if NewdTree tab is closed, use ":NERDTreeFocus" to reopen it.


1 Answers

Add this line to your .vimrc:

let g:NERDTreeWinPos = "right" 
like image 87
htanata Avatar answered Oct 15 '22 12:10

htanata