Is there a way to make NERDtree load only directories that I specify? I don’t see how to do this.
Share
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.
One idea could be to use bookmarks for that purpose. For doing that, use the following sequence of commands:
my_proj.Bookmark my_proj.B.RETURNthere.The bookmark seems to be persistent, so you are now able to open a new VIM editor, and revisit the directories you have bookmarked. And you could even start the NERDtree with an additional argument, which could be a bookmark or directory (thank’s david for the hint). So by entering
NERDtree my_proj, everything is started fine.Another idea could be to insert in your
.vimrcfile the following line:so when you start then NERDtree, your project directory should be in focus.