• Stars
    star
    589
  • Rank 75,909 (Top 2 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created almost 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A plugin for profiling Vim and Neovim startup time.

build

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:
    • git clone https://github.com/dstein64/vim-startuptime ~/.vim/pack/plugins/start/vim-startuptime
  • Vundle:
    • Add Plugin 'dstein64/vim-startuptime' to ~/.vimrc
    • :PluginInstall or $ vim +PluginInstall +qall
  • Pathogen:
    • git clone --depth=1 https://github.com/dstein64/vim-startuptime ~/.vim/bundle/vim-startuptime
  • vim-plug:
    • Add Plug 'dstein64/vim-startuptime' to ~/.vimrc
    • :PlugInstall or $ vim +PlugInstall +qall
  • dein.vim:
    • Add call dein#add('dstein64/vim-startuptime') to ~/.vimrc
    • :call dein#install()
  • 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:

:help vim-startuptime

or:

:StartupTime --help

The 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

License

The source code has an MIT License.

See LICENSE.

More Repositories

1

nvim-scrollview

A Neovim plugin that displays interactive vertical scrollbars and signs.
Lua
556
star
2

gifcast

Converts an asciinema cast to an animated GIF.
JavaScript
226
star
3

vim-win

A Vim plugin for managing windows.
Vim Script
67
star
4

highlight

A browser extension for automatically highlighting the important content on article pages.
JavaScript
54
star
5

kmeans1d

A Python package for optimal 1D k-means clustering.
C++
49
star
6

k-means-quantization-js

Apply color quantization to images using k-means clustering.
JavaScript
36
star
7

pastiche

A PyTorch implementation of Neural Style Transfer (Gatys et al. 2015).
Python
28
star
8

vim-menu

A plugin providing a console interface to Vim's built-in menu.
Vim Script
27
star
9

pyfms

A Theano-based Python implementation of Factorization Machines (Rendle 2010).
Python
27
star
10

vimgolf

A vimgolf client written in Python.
Python
25
star
11

neuralart

A library and command line utility for rendering generative art from a randomly initialized neural network.
Python
23
star
12

colortrans

An implementation of various color transfer algorithms.
Python
17
star
13

workflows

View the status of GitHub workflows.
JavaScript
11
star
14

aghasher

An implementation of Anchor Graph Hashing (Liu et al. 2011) in Python.
Python
9
star
15

vim-smile

A Vim plugin with a :Smile command.
Vim Script
6
star
16

fenwick

An implementation of Fenwick trees (Fenwick 1994).
Python
6
star
17

revdoor

A single-file C++ library for visiting revolving door combinations.
C++
6
star
18

euler-lisp-helpers

Functions that are useful for solving Project Euler problems with Common Lisp.
Common Lisp
5
star
19

neovim-windows-nightly

4
star
20

scct4j

A self-contained CRUD template for Java.
Java
4
star
21

LC4

An implementation of ElsieFour (Alan Kaminsky 2017).
Python
3
star
22

dotfiles

My personal dotfiles.
Vim Script
2
star
23

dstein64

Renders a new image hourly, using dstein64/neuralart.
1
star
24

hn-duplicate-detector

Detects duplicate HN submissions.
JavaScript
1
star