diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-11-16 07:31:27 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-11-16 07:31:27 +0900 |
| commit | 2bf5a820bb7073b6c7db50aa3be32e051d1feda5 (patch) | |
| tree | 45742a162675899d83183ebdd4e259baea4887a8 | |
| parent | 5ee4cd207e11e664b40ad47aeded17df2042b939 (diff) | |
| download | dotfiles-2bf5a820bb7073b6c7db50aa3be32e051d1feda5.tar.gz dotfiles-2bf5a820bb7073b6c7db50aa3be32e051d1feda5.tar.zst dotfiles-2bf5a820bb7073b6c7db50aa3be32e051d1feda5.zip | |
vim: add a script to measure Vim startup time
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | scripts/vim-startup.sh | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -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 |
