How to make NERDTree always open on the right side?

Running Turtle picture Running Turtle · Feb 25, 2011 · Viewed 19k times · Source

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?

Answer

htanata picture htanata · Feb 25, 2011

Add this line to your .vimrc:

let g:NERDTreeWinPos = "right"