Skip to content

Instantly share code, notes, and snippets.

@thingsiplay
Created September 28, 2022 18:36
Show Gist options
  • Save thingsiplay/bb3f890963a8f564fee42306cdc67bf3 to your computer and use it in GitHub Desktop.
Save thingsiplay/bb3f890963a8f564fee42306cdc67bf3 to your computer and use it in GitHub Desktop.
Some shell commands to investigate startup times of Vim.
# Some shell commands to investigate startup times of Vim.
# Intended to be used on their own, in example by copy-paste.
# Measure the startup time.
vim --startuptime /dev/stdout +qall && echo && time vim +q
# Remove the first column and sort the output based on time elapsed for that particular entry.
vim --not-a-term --startuptime /dev/stdout +qall | awk '{$1="" ; print $0}' | grep -E '^ *[0-9]' | sort
# Get detailed information.
vim --startuptime /dev/stdout +qall -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment