Is it possible to do let g:netrw_keepdir=0 for NERDTree?
When I change a directory, there I want to create a new file.
So how can I set this as current directory?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you want to make the directory you just entered via NERDTree the
cwd?If so, you could look at NERDTree’s documentation (
:help nerdtree) and see what it says aboutNERDTreeChDirMode.If you want to make this behaviour the default (no matter how you open/create files), adding the following line to your .vimrc will change the working directory to the one containing the active buffer.