How can I achieve this situation?
Try :help NERDTreeChDirMode. Setting it to 2 will do what you want.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago