Hari Krishna Dara wrote:
> > Did you really use:
> > :echo &runtimepath
> > That matters, because ":set runtimepath" will shorten $HOME to "~" while
> > ":echo" doesn't do that.
> I didn't use :echo, I didn't know the difference. Using :echo does show
> "~" for the path component that is causing the trouble.
OK, that explains the problem then.
> > If you did use ":echo" then the problem is that you have an unexpanded
> > "~" in the option value, that won't work. If that is not the problem,
> > then I can't see anything wrong. "~/package/vim" is where your
> > "doc/tags" file is located, thus that _should_ work. But that "~/"
> > really must be the full path.
> Ok, that explains the problem. I looked into the doc about 'rtp' and
> didn't see anything mentioned about this. I think Vim is supposed to
> internally expand the "~" characters when they are used to :set 'rtp',
> but this is getting bypassed while doing the same using the :let
> command, which is what I am doing, so something like below will cause
> let dir='~/.vim'
> let &rtp = dir.','.&rtp
> This is either a bug that needs to be fixed or the doc needs to be
I don't think the documentation states that a literal "~/" is supported
in an option. There are only a few places where is mentioned that
environment variables are expanded for the ":set" command.
I'll add a remark anyway, since you got confused. But it won't help
much, the text about option values is already so long that you wouldn't
read all of it...
Experience is what you get when you don't get what you want.
/// Bram Moolenaar -- Bram@...
/// Creator of Vim - Vi IMproved -- http://www.Vim.org
\\\ Project leader for A-A-P -- http://www.A-A-P.org
\\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html