Hong Xu wrote:

> >> This patch makes the three commands: mkvimrc, mksession and mkexrc
> >> commands could have a directory name as its argument. If the argument is
> >> a directory, Then the file, which is the .vimrc, Session.vim or .exrc,
> >> is generated under the directory and is named as the default file name
> >> (which is .vimrc, Session.vim, .exrc respectively).
> >
> > I don't see much advantage in this.  Why would the user not type the
> > path including the file name?  Currently you would do:
> >
> >     :mkvimrc ~/.vim/.vimrc
> >
> > After this patch:
> >
> >     :mkvimrc ~/.vim
> >
> > It's not really the behavior I expect: Either give no file name to use
> > the default file name, or specify the file name.
> >
> > I do see a small danger: if the user accidentally types a wrong name
> > that happens to be a directory the file gets written in the wrong place.
> > Won't happen often though.
> >
> 
> Hello Bram,
> 
> What about regarding the argument as a directory if the argument ends 
> with a path separator?

What is so difficult about typing the file name as well?  When using a
directory I would actually expect people to use "vimrc" instead of
".vimrc".

-- 
hundred-and-one symptoms of being an internet addict:
64. The remote to the T.V. is missing...and you don't even care.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui