{"id":24319543,"url":"https://github.com/ryym/vim-plugger","last_synced_at":"2026-03-14T05:07:40.200Z","repository":{"id":66204001,"uuid":"210598761","full_name":"ryym/vim-plugger","owner":"ryym","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-17T10:34:48.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-17T12:24:01.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/ryym.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-24T12:34:36.000Z","updated_at":"2025-08-17T10:34:51.000Z","dependencies_parsed_at":"2024-04-16T01:38:20.115Z","dependency_job_id":"eff878a6-2ed5-40a8-a40e-fd0baf317c91","html_url":"https://github.com/ryym/vim-plugger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryym/vim-plugger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Fvim-plugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Fvim-plugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Fvim-plugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Fvim-plugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryym","download_url":"https://codeload.github.com/ryym/vim-plugger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Fvim-plugger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27759599,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"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":"2025-01-17T15:33:41.799Z","updated_at":"2025-12-16T04:54:47.210Z","avatar_url":"https://github.com/ryym.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-plugger\n\nYet another plugin manager for Vim and Neovim.\n\n## Concept\n\n### One configuration file per plugin\n\n- You can find a plugin configuration directly from file search.\n    - No need to search around a plugin name from large vimrc\n- By `before_load` / `after_load` hooks, any configurations about a plugin can be placed in one file.\n\n### Minimal feature set\n\n- Plugins are managed by Vim's builtin [packages][vim-packages] system.\n- Plugins are loaded lazily by default, by just delaying loadings a bit after Vim's startup.\n    - Keep fast startup without bunch of customization of load timings (on command/key/filetype, etc)\n\n[vim-packages]: https://vim-jp.org/vimdoc-en/repeat.html#packages\n\n## Prerequisites\n\n- [Node.js][nodejs] - used to install your plugins concurrently.\n\n[nodejs]: https://nodejs.org/en/\n\n## Getting Started\n\n1. Install vim-plugger\n2. Create configuration files as Vim autoload scripts or Lua modules\n3. Run `plugger#enable`\n\n### Install\n\nClone \u003chttps://github.com/ryym/vim-plugger\u003e into your `.vim/pack`.\n\n```\ngit clone https://github.com/ryym/vim-plugger /path/to/.vim/pack/init/start/vim-plugger\n```\n\n### Configure\n\nCreate configuration files per plugin as autoload scripts.\nSee the [Lua integration](#lua-integration) section for Lua usage.\n\n```\nautoload/\n  plugin/\n    cursorword.vim\n    fzf.vim\n```\n\n```vim\n\" plugin/cursorword.vim\nfunction! plugin#cursorword#configure(conf) abort\n  let a:conf.repo = 'itchyny/vim-cursorword'\nendfunction\n```\n\n```vim\n\" plugin/fzf.vim\nfunction! plugin#fzf#configure(conf) abort\n  let a:conf.repo = 'junegunn/fzf'\n  let a:conf.install_if = executable('fzf')\n  let a:conf.after_load = function('plugin#fzf#after_load')\nendfunction\n\nfunction! plugin#fzf#after_load()\n  \" ...\nendfunction\n```\n\n### Run\n\nCall `plugger#enable` to load all plugins with your configurations.\n\n```vim\ncall plugger#enable({\n  \\   'conf_root': '/path/to/.vim/autoload/plugin/',\n  \\   'autoload_prefix': 'plugin#',\n  \\ })\n```\n\n## Lua integration\n\nNeovim users can also use vim-plugger with Lua.\n\n### Load plugins from Lua\n\n```lua\n-- You may need to add a path where Lua search packages in.\npackage.path = package.path .. ';/path/to/.vim/autoload/?.lua'\n\nvim.api.nvim_call_function('plugger#enable', {\n    {\n        conf_root = '/path/to/.vim/autoload/plugin/',\n        autoload_prefix = 'plugin#',\n        -- You may need to define a module prefix used on `require` .\n        lua_require_prefix = 'plugin.',\n    },\n})\n```\n\n### Configure plugins by Lua\n\nEach plugin configuration can be written in Lua or Vim script.\nIn the above example, you put a Lua file in `/path/to/.vim/autoload/plugin/` .\nA configuration file must return a `configure` function that builds a configuration table.\nThe available options is same as Vim script.\n\n```lua\n-- /path/to/.vim/autoload/plugin/foo.lua\n\nlocal function configure()\n  return {\n      repo = 'someone/foo.nvim',\n      after_load = function()\n        require('foo').setup({ bar = 'baz' })\n      end,\n  }\nend\n\nreturn { configure = configure }\n```\n\nLua configuration files are only loaded on Neovim, and ignored on Vim.\n\n## Commands\n\n### `PluggerInstall`\n\nInstall and load all uninstalled plugins.\n\n### `PluggerLoad`\n\nLoad specified plugins.\n\n```vim\n:PluggerLoad easymotion fugitive\n```\n\n### `PluggerUpdate`\n\nReinstall and load specified plugins.\n\n```vim\n:PluggerUpdate easymotion fugitive\n```\n\n### `PluggerUninstall`\n\nRemove specified plugins and their configuration files.\n\n```vim\n:PluggerUninstall easymotion fugitive\n```\n\n### `PluggerAdd`\n\nAdd new configuration files inside your `conf_root` without installing them.\n\n```vim\n\" PluggerAdd name:owner/repo ...\n:PluggerAdd emmet:mattn/emmet-vim surround:tpope/vim-surround\n```\n\nThis will generate those files:\n\n```vim\n\" plugin/emmet.vim\nfunction! plugin#emmet#configure(conf) abort\n  let a:conf.repo = 'mattn/emmet-vim'\nendfunction\n```\n\n```vim\n\" plugin/surround.vim\nfunction! plugin#surround#configure(conf) abort\n  let a:conf.repo = 'tpope/vim-surround'\nendfunction\n```\n\n\n## Plugin Configuration Options\n\n```vim\nfunction! plugin#example#configure(conf) abort\n  \" Required\n  let a:conf.repo = 'ryym/example'\n  \n  \" Optional\n  let a:conf.depends = ['submode']\n  let a:conf.before_load = function('plugin#example#before_load')\n  let a:conf.after_load = function('plugin#example#after_load')\n  let a:conf.skip_load = 0\n  let a:conf.install_if = 1\n  let a:conf.async.enabled = 1\n  let a:conf.async.detect_startup_file = ['rb']\nendfunction\n```\n\nYou can customize how the plugin is loaded by modifying the `conf` dictionary passed to the `#configure` function.\n\n### `repo` (type: String)\n\nSpecify the plugin repository as `owner/repo` format.\nCurrently vim-plugger only supports plugins hosted on GitHub.\n\n### `depends` (type: List of String)\n\nIf the plugin depends on the other plugins, specify their configuration names.\n\n```vim\n\" plugin/lsp.vim\nfunction! plugin#lsp#configure(conf) abort\n  let a:conf.repo = 'prabirshrestha/vim-lsp'\n  let a:conf.depends = ['async']\n  let a:conf.async.enabled = 0\nendfunction\n```\n\n```vim\n\" plugin/async.vim\nfunction! plug#async#configure(conf) abort\n  let a:conf.repo = 'prabirshrestha/async.vim'\n  let a:conf.async.enabled = 0\nendfunction\n```\n\nThough the order in which the configuration files are loaded is undefined,\nit is guaranteed that vim-plugger loads dependency plugins before the dependent.\n\n### `before_load` / `after_load` (type: Function () -\u003e void)\n\nYou can register callback functions called before/after a plugin is loaded.\n\n### `skip_load` (type: Number (Boolean), default: 0)\n\nIf the value is 1, vim-plugger skips loading of that plugin at Vim's startup.\nYou can load the plugin later by `PluggerLoad`.\n\n### `install_if` (type: Number (Boolean), default: 1)\n\nIf the value is 0, vim-plugger does not install the plugin.\nYou can use this for example to install some plugins on some specific OS or only either of Vim/NeoVim.\n\n### `async.enabled` (type: Number (Boolean), default: 1)\n\nIf the value is 1, vim-plugger loads the plugin asynchronously.\nThis will prevent vim-plugger from slowing Vim's startup time, even if some plugins take a long time to initialize.\n\n### `async.detect_startup_file` (type: List of String)\n\nWhen you open a file and the file extension is in this option, the plugin is loaded synchronously even if `async.enabled` is 1.\n\nExample:\n\n```vim\nfunction! plugin#jsx_pretty#configure(conf) abort\n  let a:conf.repo = 'MaxMEllon/vim-jsx-pretty'\n  let a:conf.async.detect_startup_file = ['js', 'jsx', 'tsx']\nendfunction\n```\n\n```bash\n# In those cases, jsx-pretty is loaded asynchronously.\n$ vim\n$ vim foo.py\n$ vim bar.rs\n\n# But is loaded synchronously in those cases.\n$ vim foo.js\n$ vim foo.jsx\n$ vim foo.tsx\n```\n\nThe reason this option exists is some plugin does not work correctly when loaded after opening a file.\nUsing this option, you can load a plugin before opening a file only if necessary.\n\n## Example of Use\n\n\u003chttps://github.com/ryym/dotfiles/tree/1a5ea9ca4dc2ece4b3bae329194902e3b88460da/dotfiles/vim/autoload/my/plug\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryym%2Fvim-plugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryym%2Fvim-plugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryym%2Fvim-plugger/lists"}