3

When use vim with nerdtree, I opened a file in a project. Press <Leader> key to trigger NERDTreeToggle. On the left side it will list the whole project directory by default.

enter image description here

I want to let it focus on the opened file's absolute path automatically without unfold the root directory again. Can it do?

enter image description here

2

Use the NERDTreeFind command instead of NERDTreeToggle.

1
  • 1
    Thank you for the right solution!
    – Miantian
    Dec 1 '21 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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