-
-
Save keith/4aa178ae15006f0c4daa to your computer and use it in GitHub Desktop.
vim profiling helper executable
This file contains 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
#!/bin/sh | |
exec vim --startuptime ~/.cache/vim/"$(date -j -f "%a %b %d %T %Z %Y" "$(date)" "+%s")".log "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This creates a log file such as
~/.cache/vim/1443564781.log
each time vim opens. This means that if you notice a slow start, you can grab that file, and see why it took so long to launch.