startup_profile : Profile vim startup
| script karma
Downloaded by 676
Comments, bugs, improvements
script versions (upload new version)
|With the introduction of the autoload directory, plugins were often
split into several separate files. The downside is that it isn't always
that obvious which files are actually loaded on startup.
This macro creates a CSV file including a list of loaded files during
startup and some indicators (number of lines/bytes, timing). You can
open this (semicolon-separated) CSV in any spreadsheet application, sort
the data etc.
In order to activate the macro, check the value of g:startup_profile_csv
in the source code and temporarily insert the following line(s) at the
beginning of your |vimrc| file: >
" Setting g:startup_profile_csv is optional.
let g:startup_profile_csv = "..."
The list can serve as a starting point for optimizing your startup time,
e.g. by delaying certain calls to functions in autoload files or by
making use of the AsNeeded (vimscript #915) or the tplugin (vimscript #2917)
Depending on your system configuration and the speed of your hard drive,
seeking for files or, e.g., creating menu entries may prove to be costly
with respect to startup time.
|startup_profile requires vim 7.2.
Edit the vba file and type: >
See :help vimball for details.
Add "runtime macros/startup_profile.vim" to your |vimrc| file but see
Also available via git: http://github.com/tomtom/startup_profile_vim
NOTE. The script category (see above) is wrong. This is a utility/macro,
Click on the package to download.
ip used for rating: 188.8.131.52