From b1d511e08c17732ea011bc08a22c690fe098d5d1 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 5 Jan 2016 13:47:05 +0100 Subject: [PATCH] Profiling startup time --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index bc5edad..c43d6d8 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ #### [Debugging](#debugging-1) - [General tips](#general-tips) +- [Profiling startup time](#profiling-startup-time) #### [List of colorschemes](#list-of-colorschemes-1) @@ -155,6 +156,18 @@ the active upper half. Move the `:finish` to the middle of _that_ half. Otherwise the issue is in the inactive lower half. Move the `:finish` to the middle of _that_ half. And so on. +#### Profiling startup time + +Vim startup feels slow? Time to crunch some numbers: + +``` +vim --startuptime /tmp/startup.log +q && vim /tmp/startup.log +``` + +The first column is the most important as it shows the elapsed absolute time. If +there is a big jump in time between two lines, the second line is either a very +big file or a file with faulty VimL code that is worth investigating. + ## List of colorschemes Here's a list of commonly used colorschemes: