vim-startuptime is a plugin for viewing vim and nvim startup event timing
information. The data is automatically obtained by launching (n)vim with the
--startuptime argument. See :help startuptime-configuration for details on
customization options.
vim>=8.0.1453ornvim>=0.3.1- The plugin may work on earlier versions, but has not been tested.
- The plugin depends on compile-time features for
vim(not applicable fornvim).+startuptimeis required.+timersis recommended, to capture all startup events.+terminalis required.
A package manager can be used to install vim-startuptime.
Examples
- Vim8 packages:
git clone https://github.com/dstein64/vim-startuptime ~/.vim/pack/plugins/start/vim-startuptime
- Vundle:
- Add
Plugin 'dstein64/vim-startuptime'to~/.vimrc :PluginInstallor$ vim +PluginInstall +qall
- Add
- Pathogen:
git clone --depth=1 https://github.com/dstein64/vim-startuptime ~/.vim/bundle/vim-startuptime
- vim-plug:
- Add
Plug 'dstein64/vim-startuptime'to~/.vimrc :PlugInstallor$ vim +PlugInstall +qall
- Add
- dein.vim:
- Add
call dein#add('dstein64/vim-startuptime')to~/.vimrc :call dein#install()
- Add
- NeoBundle:
- Add
NeoBundle 'dstein64/vim-startuptime'to~/.vimrc - Re-open vim or execute
:source ~/.vimrc
- Add
- Launch
vim-startuptimewith:StartupTime. - Press
Kon events to get additional information. - Press
gfon sourcing events to load the corresponding file in a new split. - The key sequences above can be customized (
:help startuptime-configuration). - Times are in milliseconds.
Documentation can be accessed with either:
:help vim-startuptimeor:
:StartupTime --helpThe underlying markup is in startuptime.txt.
There is documentation on the following topics.
| Topic | :help {subject} |
|---|---|
| Arguments | startuptime-arguments |
| Modifiers | startuptime-modifiers |
| Vim Options | startuptime-vim-options |
| Configuration | startuptime-configuration |
| Color Customization | startuptime-color-customization |
The source code has an MIT License.
See LICENSE.