Is there a way to search files with netrw similar to find command in linux?
So in command line I can do
find . -name "pattern"
Is there something similar in netrw?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityYou have plugins to do so :
Or you can do by hand :
With a unix command from vim :
:!find . -name "pattern"
With the Explore
command :
:Explore pattern
Based on this post this function is available through the netrw.vim
file.
ag
with it : github.com/ggreer/the_silver_searcher
Yes -- seems you have a number of people answering who don't use gvim because such search support is easily seen under the netrw menu. So, look at :help netrw-star . In particular, :Explore */pattern .
find . -name "pattern"
on its own would be just as pointless in Vim as in your shell. You want to find files, OK, but what do you want to do with the result?:.!find . -type f -name "patern"
in an empty buffer and then usegf
on each entry.