How junegunn/vim-plug works
vim-plug is a single-file Vim/Neovim plugin manager. Users declare plugins between plug#begin() and plug#end(), then invoke management commands to install, update, review, or clean them. The README also documents on-demand loading, hooks, version selection, and support for externally managed plugins. Source excerpts were unavailable, so relationships below are limited to documented behavior; implementation paths point to the sole runtime file.
Main entry points: plug.vim vim-plug runtime
Components 13
Plugin configuration
- Plugin declarations
plug.vim
Plugin management
- vim-plug runtime
plug.vim - Install plugins
plug.vim - Update plugins
plug.vim - Review changes
plug.vim - Clean unused
plug.vim - Plugin directories
plug.vim - Plugin Git repositories
- Post-update hooks
plug.vim
Loading and integration
- On-demand loading
plug.vim - Runtime path setup
plug.vim
Other components
- Vim user
- Vim / Neovim
Connections 17
- Vim user → Plugin declarations: declares plugins
README.md - Vim user → vim-plug runtime: invokes commands
README.md - Plugin declarations → vim-plug runtime: configures
README.md - vim-plug runtime → Install plugins: dispatches
README.md - vim-plug runtime → Update plugins: dispatches
README.md - vim-plug runtime → Review changes: dispatches
README.md - vim-plug runtime → Clean unused: dispatches
README.md - Install plugins → Plugin Git repositories: clones shallowly
README.md - Update plugins → Plugin Git repositories: updates
README.md - Install plugins → Plugin directories: installs into
README.md - Update plugins → Post-update hooks: runs after update
README.md - Review changes → Plugin Git repositories: reviews changes
README.md - Clean unused → Plugin directories: removes unused
README.md - Plugin declarations → On-demand loading: sets load options
README.md - vim-plug runtime → Runtime path setup: configures
README.md - Runtime path setup → Vim / Neovim: enables plugins
README.md - On-demand loading → Vim / Neovim: loads on demand
README.md