How to make NERDTree always open on the right side? April 15, 2023 by Tarik Add this line to your .vimrc: let g:NERDTreeWinPos = "right"