Tell me more ×
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/"

Thanks

share|improve this question
1  
This should be on superuser rather than stackoverflow. – Jason Down Oct 24 '12 at 14:38

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

1 Answer

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

 
discard

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