say, I’m editing a file called application_controller.rb, which in ~/work/foo/app/controller/.
Now I want to open NERDTree window, and hope it can automatically expand the folder ~/work/foo/app/controller/, and position the cursor at the file application_controller.rb. How?
:NERDTreeFindis most probably what you’re looking for: