Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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
1  
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .