-
- Notifications
You must be signed in to change notification settings - Fork 2k
api
Junegunn Choi edited this page Jun 20, 2018 · 9 revisions
| Function | Description |
|---|---|
plug#begin(path) | Start vim-plug block |
plug#(...) | Register a plugin (equivalent to Plug command) |
plug#end() | End block, update &rtp, and load plugins when not vim_starting |
plug#helptags() | Regenerate help tags for all plugins |
plug#load(names...) | Load the plugins immediately |
plug#load(name_list) | Load the plugins immediately |
| Variable | Type | Description |
|---|---|---|
g:plug_home | String | Directory to store/load plugins. Set by plug#begin(path) call. |
g:plugs | Dict | Information of plugins. Initialized by plug#begin(path) and incrementally extended by Plug commands. |
| Event | Pattern | Description |
|---|---|---|
User | Name of a plugin | Triggered when the plugin is lazy-loaded |
| Name | Description |
|---|---|
<plug>(plug-preview) | Opens preview window for the commit on the current line (see #769) |