When I run shopt -s globstar; ls -1 tests/**/Helpers/**/*.php in bash I get:tests/Helpers/Layout.phptests/Helpers/Link.phptests/Helpers/LinksPage.phptests/Helpers/LiqpayRedirect.phptests/Helpers/LoginPage.phptests/Helpers/Project.phptests/Helpers/ProjectsPage.phptests/Helpers/QueriesPage.phptests/Helpers/Query.phptests/Helpers/User.phptests/Selenium/Helpers/Layout.phptests/Selenium/Helpers/LinksPage.phptests/Selenium/Helpers/ProjectsPage.phptests/Selenium/Helpers/QueriesPage.phptests/Selenium/Helpers/RegisterPage.phptests/Selenium/Helpers/User.phpBut doing args tests/**/Helpers/**/*.php in vim defines argument list consisting only of files with Selenium in path. Am I doing it wrong? What exactly are the rules? From the docs it sounds like it should work.
How double star works in vim?
argument list
You can check with echo glob2regpat('tests/**/Helpers/**/*.php') to what regular expression this will be translated. This returns: ^tests[\/].*[\/]Helpers[\/].*[\/].*\.php$, so it will look only for a Helpers directory which is located below any directory underneath the tests directory.