{"id":16520591,"url":"https://github.com/layflags/vim-find","last_synced_at":"2026-03-06T03:31:53.913Z","repository":{"id":141683333,"uuid":"2680023","full_name":"layflags/vim-find","owner":"layflags","description":"Find files in subdirectories","archived":false,"fork":false,"pushed_at":"2011-10-31T10:54:18.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T11:55:00.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://vim.wikia.com/wiki/Find_files_in_subdirectories","language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/layflags.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-31T10:50:48.000Z","updated_at":"2015-11-22T11:37:03.000Z","dependencies_parsed_at":"2023-03-13T10:29:50.018Z","dependency_job_id":null,"html_url":"https://github.com/layflags/vim-find","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/layflags/vim-find","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Fvim-find","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Fvim-find/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Fvim-find/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Fvim-find/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/layflags","download_url":"https://codeload.github.com/layflags/vim-find/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Fvim-find/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30160859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T16:51:43.876Z","updated_at":"2026-03-06T03:31:53.870Z","avatar_url":"https://github.com/layflags.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Find files in subdirectories #\n\nby Vladimir Marek 2006\nVersion 6.0\n\n\u003chttp://vim.wikia.com/wiki/Find_files_in_subdirectories\u003e\n\n--------------------------------------------------------\n\nI'm working with big, nested workspaces and often I don't remember the exact path to the file, only its filename or part of the filename. If I know some of the text *in* the file, I could always recursively use 'vimgrep', but for searching on filenames alone I have been using:\n\n\t:!find . -name ...\n\nto locate the file and then edit it. I was trying to find if there is some solution directly in Vim, and haven't found one. Closest were `:find` and `:globpath()`. `:find` works nearly as I need, but unfortunatelly it opens the first file of a given name without telling me that there are more. For `globpath()` I was unable to make it work with the `**` construction, so that it would look into all subdirectories under current directory.\nSo I wrote this small function. You can use it like this:\n\n\t:Find whatever.c - this opens the file \"src/core/whatever.c\"\n\nIf there is more than one match, it will present you a selection:\n\n\t:Find Makefile\n\t1 ./src/Makefile\n\t2 ./src/core/Makefile\n\t3 ./src/api/Makefile\n\t...\n\t89 ./src/deelply/hidden/Makefile\n\t90 ./Makefile\n\tWhich ? (CR=nothing)\n\nYou may also use wildchars (whatever find(1) knows).\n\n\t:Find *stream*.c\n\t1 ./src/core/i_stream.c\n\t2 ./src/core/o_stream.c\n\t3 ./src/core/streamio.c\n\tWhich ? (CR=nothing)\n\n...\n\nRead the [full article here](http://vim.wikia.com/wiki/Find_files_in_subdirectories)!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayflags%2Fvim-find","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayflags%2Fvim-find","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayflags%2Fvim-find/lists"}