On 24/05/10 22:30, Jordan Lewis wrote:
[...]
I am a bit concerned with your decision to write undo files to the
current directory by default, though. I think that it is "impolite" to
users to have Vim store its state (especially at the
1-statefile-per-file rate that undo persistence uses) directly in the
user's working directory. It makes more sense to me to use an undo
directory within ~/.vim by default. If that fails, then the right thing
to do would be to go ahead and write in the file's directory since, as
you mentioned, it is likely to succeed.
I suppose the argument could be made that the user who has added undo
persistence to her vimrc would have read enough of the documentation to
know that she must also set undodir if she doesn't want a polluted
current working directory. I don't think that this argument is strong
enough to warrant using the new default behavior, though, since a less
clued-in user might not understand why his working directory is suddenly
full of dot files.
- Jordan Lewis
The default Bram chose is not the "current" directory (as of :cd or
:lcd) but the directory of the file. The advantage of this choice is
that you could quite possibly have files of the same name (e.g.
Makefile) in different directories, and with a common 'undodir',
undofiles for all those identically-named files would overwrite each
other. Placing undofiles in the directory of the file makes sure that
the undofiles for vim73/Makefile, vim73/src/Makefile,
vim73/src/po/Makefile and vim73/src/testdir/Makefile won't destroy each
other.
Best regards,
Tony.
--
Q: How does a UNIX Guru pick up a girl?
A: look; grep; which; eval; nice; uname; talk; date;
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php