Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dstein64/vim-startuptime
A plugin for viewing Vim and Neovim startup event timing information.
https://github.com/dstein64/vim-startuptime
profiling startup vim vimscript
Last synced: 3 days ago
JSON representation
A plugin for viewing Vim and Neovim startup event timing information.
- Host: GitHub
- URL: https://github.com/dstein64/vim-startuptime
- Owner: dstein64
- License: mit
- Created: 2020-01-10T21:47:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-17T16:02:39.000Z (10 months ago)
- Last Synced: 2024-12-29T12:12:23.323Z (10 days ago)
- Topics: profiling, startup, vim, vimscript
- Language: Vim Script
- Homepage:
- Size: 554 KB
- Stars: 601
- Watchers: 9
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![build][badge_thumbnail]][badge_link]
# vim-startuptime
`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.## Requirements
* `vim>=8.0.1453` or `nvim>=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 for
`nvim`).
* `+startuptime` is required.
* `+timers` is recommended, to capture *all* startup events.
* `+terminal` is required.## Installation
A package manager can be used to install `vim-startuptime`.
Examples* [Vim8 packages][vim8pack]:
- `git clone https://github.com/dstein64/vim-startuptime ~/.vim/pack/plugins/start/vim-startuptime`
* [Vundle][vundle]:
- Add `Plugin 'dstein64/vim-startuptime'` to `~/.vimrc`
- `:PluginInstall` or `$ vim +PluginInstall +qall`
* [Pathogen][pathogen]:
- `git clone --depth=1 https://github.com/dstein64/vim-startuptime ~/.vim/bundle/vim-startuptime`
* [vim-plug][vimplug]:
- Add `Plug 'dstein64/vim-startuptime'` to `~/.vimrc`
- `:PlugInstall` or `$ vim +PlugInstall +qall`
* [dein.vim][dein]:
- Add `call dein#add('dstein64/vim-startuptime')` to `~/.vimrc`
- `:call dein#install()`
* [NeoBundle][neobundle]:
- Add `NeoBundle 'dstein64/vim-startuptime'` to `~/.vimrc`
- Re-open vim or execute `:source ~/.vimrc`## Usage
* Launch `vim-startuptime` with `:StartupTime`.
* Press `K` on events to get additional information.
* Press `gf` on 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
Documentation can be accessed with either:
```vim
:help vim-startuptime
```or:
```vim
:StartupTime --help
```The underlying markup is in [startuptime.txt](doc/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` |License
-------The source code has an [MIT License](https://en.wikipedia.org/wiki/MIT_License).
See [LICENSE](LICENSE).
[badge_link]: https://github.com/dstein64/vim-startuptime/actions/workflows/build.yml
[badge_thumbnail]: https://github.com/dstein64/vim-startuptime/actions/workflows/build.yml/badge.svg
[dein]: https://github.com/Shougo/dein.vim
[neobundle]: https://github.com/Shougo/neobundle.vim
[pathogen]: https://github.com/tpope/vim-pathogen
[vim8pack]: http://vimhelp.appspot.com/repeat.txt.html#packages
[vimplug]: https://github.com/junegunn/vim-plug
[vundle]: https://github.com/gmarik/vundle