aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xscripts/vim-startup.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 85e3ee7..bec3c6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/.vim/*
!/.vim/my/
/.config/emacs
+vim-startup.log
diff --git a/scripts/vim-startup.sh b/scripts/vim-startup.sh
new file mode 100755
index 0000000..ebc74a5
--- /dev/null
+++ b/scripts/vim-startup.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+log="$(mktemp)"
+vim --startuptime "$log"
+sort -nr -k2 "$log" | head -n 30 > ./vim-startup.log