Bram Moolenaar wrote:
> Patch 7.2.269
> Problem: Many people struggle to find out why Vim startup is slow.
> Solution: Add the --startuptime command line flag.
> Files: runtime/doc/starting.txt, src/globals.h, src/feature.h,
> src/main.c, src/macros.h
That's useful.
Shouldn't "vim --help" list the option --startuptime=<file>
Attached patch adds it.
I notice that it seems to be the only option to require an
equal sign '=' between the command line flag and its argument.
-- Dominique
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
Index: main.c
===================================================================
RCS file: /cvsroot/vim/vim7/src/main.c,v
retrieving revision 1.94
diff -c -r1.94 main.c
*** main.c 3 Nov 2009 11:11:11 -0000 1.94
--- main.c 3 Nov 2009 15:33:34 -0000
***************
*** 3144,3149 ****
--- 3144,3152 ----
main_msg(_("--serverlist\t\tList available Vim server names and exit"));
main_msg(_("--servername <name>\tSend to/become the Vim server <name>"));
#endif
+ #ifdef STARTUPTIME
+ main_msg(_("--startuptime=<file>\tWrite startup timing messages to <file>"));
+ #endif
#ifdef FEAT_VIMINFO
main_msg(_("-i <viminfo>\t\tUse <viminfo> instead of .viminfo"));
#endif