aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-16 07:31:27 +0900
committernsfisis <nsfisis@gmail.com>2021-11-16 07:31:27 +0900
commit2bf5a820bb7073b6c7db50aa3be32e051d1feda5 (patch)
tree45742a162675899d83183ebdd4e259baea4887a8
parent5ee4cd207e11e664b40ad47aeded17df2042b939 (diff)
downloaddotfiles-2bf5a820bb7073b6c7db50aa3be32e051d1feda5.tar.gz
dotfiles-2bf5a820bb7073b6c7db50aa3be32e051d1feda5.tar.zst
dotfiles-2bf5a820bb7073b6c7db50aa3be32e051d1feda5.zip
vim: add a script to measure Vim startup time
-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