Manage the configs for each vim-plugged plugin in a separate file.
- Automatically load configs for each plugin.
- Help you manage the config files of the plugins.
Plug 'Song-Tianxiang/vim-plug-config'
You'd better add this as the first plugin in your plug list to prevent setting configs for other plugins after they are loaded.
Alternatively, you can load the configs on the VimEnter event:
g:plug_config_autoload = false
autocmd VimEnter * PlugLoadAll
PlugLoad <plug-name>
: Load the config of<plug-name>
. UseTAB
to help you complete.PlugLoadAll
: Load the configs of all plugged plugins. By default, it is executed whenvim-plug-config
is loaded.PlugConfig <plug-name>
: Edit the config of<plug-name>
. UseTAB
to help you complete.FZFPlugConfig
: FZF search<plug-name>
to edit config file.
Note: These variables shouldn't be set in the plug-config
file of vim-plug-config
itself. i.e. you need to set them in your vimrc
.
- Default:
true
- Whether to auto-load all configs at startup.
- Default:
~/.vim/plug-config
- Default:
edit
- The command used to edit the config file. e.g.
edit
,split
,vsplit
,tabnew
.
- Default:
false
- Whether enable fzf integration
:FZFPlugConfig
. FZF needed.
- Vim9 Only: This plugin currently supports Vim9, with all Lua and NeoVim-related content removed. If you are a NeoVim user, you might be interested in vim-plug-config and lazy.nvim.
- Different: Add command completion to
PlugConfig
andPlugLoad
, removedPlugConfigEditUnderCuror
.
This plugin is developed based on vim-plug-config, originally created by Yufan You.