8

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,619
nkint
  • 799

1 Answers1

12

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

romainl
  • 23,415