aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/vim-startup.sh
blob: 036a22159eb9fcd358b577c3d2d257f74f6e2b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [[ "$1" == '-n' ]]; then
    vim=nvim
else
    vim=vim
fi

log="$(mktemp)"
$vim --startuptime "$log" +q
sort -nr -k2 "$log" | head -n 30 > ./$vim-startup.log