Search code examples
vimgrepnetrwag

Error when pattern search in netrw


When I do :Explore //** searchingforthis I get this error:

E132: Function call depth is higher than 'maxfuncdepth'

Anyone knows why? Btw, //** do a grep in the netrw dir and let you step through the files where the pattern were found.

I'm using ag instead of grep.


Solution

  • Netrw is not a very good tool for what you seem to be trying to do.

    If you are trying to recursively find all files in the current directory that contain foo, try :grep or :vimgrep:

    :grep foo **/* | cw
    :vim bar **/* | cw