Is there a way to search for some text in a folder and to display search results in a separate buffer in Vim? (Like Sublime Text Ctrl + Shift + F results)
Is there a way to search for some text in a folder and to
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.
No, you don’t need any plugin. The default
:vimgrep(or:vim) is all you need.Search for
fooin every file in the current directory:Search for
fooin every JavaScript file in the current directory:Search for
fooin every JavaScript file in the current directory recursively:Search for the current word in every file in the current directory:
(edit: use
:cw[indow]instead of:copen)