{"id":15484722,"url":"https://github.com/sirbrillig/vim-grepdef","last_synced_at":"2025-10-09T21:06:14.273Z","repository":{"id":57204117,"uuid":"202610674","full_name":"sirbrillig/vim-grepdef","owner":"sirbrillig","description":"A vim plugin for grepdef: search for symbol definitions in various programming languages","archived":false,"fork":false,"pushed_at":"2025-03-23T14:13:32.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T15:24:55.768Z","etag":null,"topics":["grep","grepdef","ripgrep","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sirbrillig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-15T20:58:45.000Z","updated_at":"2025-03-23T14:13:36.000Z","dependencies_parsed_at":"2022-08-26T19:50:17.067Z","dependency_job_id":null,"html_url":"https://github.com/sirbrillig/vim-grepdef","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirbrillig%2Fvim-grepdef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirbrillig%2Fvim-grepdef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirbrillig%2Fvim-grepdef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirbrillig%2Fvim-grepdef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sirbrillig","download_url":"https://codeload.github.com/sirbrillig/vim-grepdef/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252728,"owners_count":21072703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["grep","grepdef","ripgrep","vim"],"created_at":"2024-10-02T05:41:41.513Z","updated_at":"2025-10-09T21:06:09.225Z","avatar_url":"https://github.com/sirbrillig.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-grepdef\n\nA vim plugin for [grepdef](https://github.com/sirbrillig/grepdef): search for symbol definitions in various programming languages\n\nThis adds the command `:GrepDef \u003csymbol\u003e [path]`\n\nThis also adds the mapping `\u003cLeader\u003ed` to run grepdef on the symbol under the cursor.\n\nThe filetype will automatically be detected.\n\nThe results will appear in vim's [quickfix buffer](https://neovim.io/doc/user/quickfix.html). To close the buffer, run `:cclose`. To open it again, run `:copen`.\n\n## Installation\n\nYou must have [grepdef](https://github.com/sirbrillig/grepdef) installed.\n\nIf using [Pathogen](https://github.com/tpope/vim-pathogen):\n\n```\ncd ~/.vim/bundle\ngit clone https://github.com/sirbrillig/vim-grepdef.git\n```\n\nIf using [Vim-Plug](https://github.com/junegunn/vim-plug), add the following to your vimrc inside the plugin block:\n\n```\nPlug 'sirbrillig/vim-grepdef'\n```\n\n## Configuration\n\nIf needed, you can set the path to `grepdef` executable by setting the `g:grepdef_path` variable.\n\n## FAQ\n\n### Can I automatically close the quickfix buffer after going to the definition?\n\nYes, add the following to your vimrc (this will affect all quickfix buffers, not just grepdef):\n\n```\n\" Auto close quickfix buffer after selecting an entry\nautocmd BufReadPost quickfix nnoremap \u003cbuffer\u003e \u003cCR\u003e \u003cCR\u003e:cclose\u003cCR\u003e\n```\n\nIf you'd like to only close the quickfix buffer if there's a single entry, then use this instead:\n\n```\n\" Auto close quickfix buffer after selecting an entry if there is only one entry\nfunction! CloseQuickFixIfOneEntry()\n\tif len(getqflist()) \u003c 2 | cclose | endif\nendfunction\nautocmd BufReadPost quickfix nnoremap \u003cbuffer\u003e \u003cCR\u003e \u003cCR\u003e:call CloseQuickFixIfOneEntry()\u003cCR\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirbrillig%2Fvim-grepdef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsirbrillig%2Fvim-grepdef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirbrillig%2Fvim-grepdef/lists"}