Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I achieve this situation?

  1. Open vim in my home folder.
  2. Navigate somewhere with NERDTree
  3. Run the :!ls command and see the contents of the directory in that NERDTree is displaying
share|improve this question
up vote 9 down vote accepted

Try :help NERDTreeChDirMode. Setting it to 2 will do what you want.

share|improve this answer
i got it thanks! but to be complete (i'm not a vim guru) the answer will include also ":helptags ~/.vim/doc" to get docs aviable and "let g:NERDTreeChDirMode=2" in .vimrc – nkint Apr 26 '11 at 22:29

Your Answer


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.