Created
September 28, 2022 18:36
-
-
Save thingsiplay/bb3f890963a8f564fee42306cdc67bf3 to your computer and use it in GitHub Desktop.
Some shell commands to investigate startup times of Vim.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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