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.

If NERDTree starts up somewhere in the C: drive, once I reach C:\ itself (which NERDTree considers as "/"), I get the message "already at top dir" if I try to click on the double dot ..

NERDTree's help is all about navigating up and down directories, but there doesn't seem to be a way to directly specify a path to change to. Is there? Or is there any other way of switching drives on Windows?

Edit: I found the roundabout way of: changing Vim's directory with :cd D:\, then :NERDTreeCWD. Is there a better, more direct way?

share|improve this question

1 Answer 1

:NERDTree /path/to/dir

opens NERDTree in the specified directory.

It is generally a better idea to start Vim in the directory you wich to work in, though.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.