enabler : Load plugins/bundles as needed
script karma |
Rating 6/3,
Downloaded by 1462 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Tom Link |
|
script type |
utility |
|
description |
The Enabler plugin loads plugins/bundles (à la pathogen) on demand as requested
by the user. It's main goal is to manage your 'runtimepath' as needed. It thus
allows users to have tons of vim plugins/bundles at their finger tips without
slowing down startup time.
Plugins/bundles are enabled:
- on explicit demand via |:Enable|
- or implicitly when
- setting a filetype (see |:Enablefiletype|)
- editing a file matching a |regexp| (see |:Enablefilepattern|)
- calling an unknown function (see |:Enableautoload|)
- invoking a map (see |:Enablemap|)
- calling a command (see |:Enablecommand|)
Enabler can also scan available plugins/bundles and generate stub commands and
maps for you (see |:Enablegenerate|). These autoenabler definitions can be
loaded via |:Autoenabler|.
The doc files of installed plugins/bundles can be made available via
|:Enablehelptags|.
Most vim plugin managers try to do at least two things: manage your
'runtimepath' and manage (install, update, remove) plugins. The Enabler plugin
focuses on the first task, i.e., managing the 'runtimepath' variable and
enabling plugins as needed. The Enabler plugin doesn't provide a way to
download / install / update / remove / build these plugins. Users should use
one of the other vim plugin managers available, shell scripts or whatever.
Enabler is the successor of the tplugin plugin.
|
|
install details |
If you want to install the vba from vim.org, open the vba file in VIM (see
`:help vimball` for details) and type: >
:so %
If you want to install from git, clone http://github.com/tomtom/enabler_vim/
to ~/.vim/bundle/enabler_vim: >
cd ~/.vim/bundle
git clone https://github.com/tomtom/enabler_vim.git
In order to make full use of the enabler plugin, you could insert something
like the the following lines at the top of the |vimrc| file:
""" If enabler is installed as bundle, add the directory of the enabler
""" bundle to 'rtp' (the value may differ from your setup):
set rtp+=$HOME/.vim/bundle/enabler_vim
""" If enabler is installed in ~/.vim replace the above line with the
""" following:
" runtime! plugin/enabler.vim
""" Optionally customize enabler's behaviour:
" let g:enabler... = ...
""" Load the plugin:
runtime! plugin/enabler.vim
""" Enable a standard set of plugins you always use:
Enable ...
""" Optionally load |autoenabler.vim| (must run :Enablegenerate first):
Autoenabler
|
|
script versions (upload new version)
Click on the package to download.
enabler.vba |
1.00 |
2015-10-02 |
7.0 |
Tom Link |
- enabler#helptags#Generate(): Show message - enabler#Command(): Add extra check for "AddUndefine()" - Use case sensitive matches for filenames - enabler#AutoFiletype(): Call enabler#Plugin() with load_now = 1 - NEW :Enablecommands, enabler#Commands() - NEW :Enableautocmd EVENT PATTERN PLUGIN[#GROUP]... - Support for ftbundles/ftplugins MD5 checksum: a51dfad95cc0d93ce59868deef5cf9fd |
enabler.vba |
0.1 |
2015-02-01 |
7.4 |
Tom Link |
Initial upload |
ip used for rating: 142.132.191.50
|