Skip to content

Instantly share code, notes, and snippets.

@keith
Created September 30, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keith/4aa178ae15006f0c4daa to your computer and use it in GitHub Desktop.
Save keith/4aa178ae15006f0c4daa to your computer and use it in GitHub Desktop.
vim profiling helper executable
#!/bin/sh
exec vim --startuptime ~/.cache/vim/"$(date -j -f "%a %b %d %T %Z %Y" "$(date)" "+%s")".log "$@"
@keith
Copy link
Author

keith commented Sep 30, 2015

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.

@supermarin
Copy link

I always have a slow start 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment