Richard Hartmann wrote:
> 2009/11/3 Bram Moolenaar <b...@moolenaar.net>: > > > Yeah, that's inconsistent. Shall we change it to > > vim --startuptime <file> > > Aye from me. Also, it should default to a reasonable filename if none is > given. Personally, I'd suggest > > vim_startup. I rather avoid using a default name, because it's easy to accidentally overwrite an existing file. And it would require another flag to specify the name when you want to, because you don't know if the argument that follows is a log file name or a file to be edited. And the files with the default name would be written in the current directory, which makes this even more tricky. > Also, wouldn't it make more sense to create a new file instead of > appending? Two possible solutions are a counter and a timestamp. So a > filename like > > vim_startup.20091108-113425 > > might be a good solution. I.e. > > $filename.$ISO_DATE.$HHMMSS > > optionally interspersed with dashes and dots to increase legibility. The idea is that you get a log of startups in one file. So you can have Vim startup a dozen times, and then look in the log file what happened. Writing all different files makes this a bit more complicated. Appending also avoids that when you accidentally give an existing file name it's overwritten. -- If you only have a hammer, you tend to see every problem as a nail. If you only have MS-Windows, you tend to solve every problem by rebooting. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---