Is it possible to do searching in NERDTree window by the filenames and file content?
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.
You can do
/foolike in any other normal Vim window but you are limited to the text currently displayed in NERDTree: you cannot search non-expanded subdirectories or non-listed files.Assuming you are at the root of your project, you can do the following to search the word
fooin JavaScript files across your project:Or the following if the “working directory” (
:pwd) is not the root of your project:Note the
**(:help starstar) that makes the search recursive.If you want to open
app/views/foobar.phpfor editing, you can do:Well, there are many ways.
Accessing files/buffers or searching across a project are relatively straightforward with native commands but there are quite a lot of third party plugins to make it even faster and easier. Ctrl+P is my favorite file/buffer finder plugin but you should get comfortable with the basics before turning to plugins.