7

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
Wuffers
  • 19,020
  • 17
  • 95
  • 126
nkint
  • 759
  • 1
  • 8
  • 16

1 Answers1

11

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

romainl
  • 22,554
  • 2
  • 49
  • 59
  • 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