2009/11/8 Bram Moolenaar <b...@moolenaar.net>: > I rather avoid using a default name, because it's easy to accidentally > overwrite an existing file.
Not if you append a counter or similar to the filename. > 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. There is that. Good point. > And > the files with the default name would be written in the current > directory, which makes this even more tricky. Same problem as with file names you specify. > 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. Depends on the format you use. Personally, I woud tend to use vimdiff if possible. > Appending also avoids that when you accidentally give an existing file > name it's overwritten. Arguably, that is worse as it could destroy the syntax of data in an existing file. The problem can be avoided by appending to the filename. Clutter vs data safety, so to speak. Richard --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---