sponsor Vim development Vim logo Vim Book Ad

ipi : Load plugins individually - cut down start-up time.

 script karma  Rating 14/5, Downloaded by 1353  Comments, bugs, improvements  Vim wiki

created by
Jan Christoph Ebersbach
script type
This plugin is very much inspired by Tim Pope's pathogen plug-in. vim-ipi
adds the functionality of loading infrequently used plugins later. This
greatly helps in cutting down vim's start-up time.

Load gundo plugin later:
:IP gundo

Load gundo and speeddating plugins later:
:IP gundo speedating

Load all known plugins later:

A very high level of convenience can be achieved by loading the plug-ins
automatically right before using their functionality. Here is an example for
the gundo plug-in. I just prefixed the mapping with ":silent! IP gundo<CR>":
nmap <leader>u :silent! IP gundo<CR>:GundoToggle<CR>

Some plugins use the autocommand VimEnter to do some initialization. ipi
has built-in support for a number of plugins that use this feature. A
detailed description is provided for the g:ipi_vimenter_autocommand
variable.  In case a plugin is not support yet, manual execution of the
autocommand can be done by running the following command:

For the convenience wrapper it would look like this:
nmap <leader>f :silent! IP NERDTree<CR>:do NERDTree VimEnter<CR>:NERDTree<CR>
install details
Install in ~/.vim/autoload (or ~\vimfiles\autoload) together with pathogen

Pathogen's settings can be used to configure ipi as well, e.g. disable
plugins (g:pathogen_disabled).

For loading plugins later, install them in ~/.vim/ipi (or ~\vimfiles\ipi)
and  add `call ipi#inspect()` to .vimrc. This will create a list of plugins
that can be loaded later by using the LL command:

The development version is available at http://www.github.com/jceb/vim-ipi.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ipi.vim 1.3 2011-12-17 7.0 Jan Christoph Ebersbach - add support for automatically executing the VimEnter autocommand when
  loading a plugin
- rename LL to IP
ipi.vim 1.2 2011-11-20 7.0 Jan Christoph Ebersbach - update documentation
ipi.vim 1.1 2011-11-17 7.0 Jan Christoph Ebersbach - change global variable lp to be script local
- add support for a specific path to ipi#inspect
- externalize ipi#source
- source scripts in ftdetect and after directories as well
ipi.vim 1.0 2011-11-16 7.0 Jan Christoph Ebersbach Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.