Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can anyone show me how to setup Nerdtree default directory ?

Everytime I open nerdtree it always point to my "documents and setting/user/"

How can I tell nerdtree to point to "D:/working/"


share|improve this question

migrated from stackoverflow.com Oct 24 '12 at 15:01

This question came from our site for professional and enthusiast programmers.

This should be on superuser rather than stackoverflow. –  Jason Down Oct 24 '12 at 14:38

1 Answer 1

Add a custom mapping to your ~/.vimrc:

nnoremap <F9> :NERDTreeToggle /path/to/directory

The set autochdir option may pick your interest, BTW.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.