How to make NERDTree always open on the right side?

Solution 1:

Add this line to your .vimrc:

let g:NERDTreeWinPos = "right"