O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Profiling startup

You can start Vim with a --startuptime <filename> flag, which will log every action Vim takes during startup into a file. For instance, here's how you write the startup log into startuptime.log:

$ vim --startuptime startuptime.log
You can launch gvim in a similar manner with gvim --startuptime startuptime.log. The commands are the same in the Linux command line and in Windows cmd.exe.

Quit Vim, and open startuptime.log. You'll be greeted with something like this (I replaced sections of the file with <...> to make it easier to read):

 

 

In the preceding screenshot, you can see a set of timestamps (most in three columns), ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required