Re: runtimepath question
- On 24/04/09 10:54, dr-dr xp wrote:
>Actually, it's even simpler than that:
> On Thu, Apr 23, 2009 at 6:55 PM, Dennis Benzinger
> <Dennis.Benzinger@... <mailto:Dennis.Benzinger@...>> wrote:
> Am 23.04.2009 12:39, Manfred Lotz schrieb:
> > Dennis Benzinger wrote:
> >> Am 23.04.2009 10:21, Manfred Lotz schrieb:
> >>> Hi all,
> >>> When testing scripts (some have many files) I would like to put
> them in
> >>> a directory tree different to ~/.vim to avoid cluttering the
> ~/.vim tree.
> >>> How can I expand the runtimepath variable in .vimrc?
> >> Use the excellent online help and read :help 'runtimepath'.
> There is an
> >> example.
> > I had read it and tried to prepend ~/.vimtest like this
> > set runtimepath=~/.vimtest,$VIMRUNTIME
> > in my ~/.vimrc.
> > However, it seemed that $VIMRUNTIME is not the same as runtimepath.
> > I couldn't find out how to specify runtimepath instead of
> $VIMRUNTIME in
> > above statement.
> > set runtimepath=~/.vimtest,runtimepath
> > didn't do it.
> Ah, sorry, that's your problem.
> You can append something to runtimepath by using
> set runtimepath+=bla
> or if you have to add it to the front you can use
> exec "set rtp=bla," . &rtp
> just use this:
> let &rtp = "somewhere".&rtp
> to avoid using ugly execute statement
> or if you want to add something somewhere in the middle then you'll have
> to query the current value with &rtp, use split() to get the individual
> paths as a list, modify the list, use join() to turn it into a comma
> separated string and finally set it by assigning to &rtp.
> Dennis Benzinger
will append "~/.vimtest" in front of the 'runtimepath' option, also
adding a comma if the value wasn't empty.
A person who leaves all his ski passes on his jacket just to
-- Rich Hall, "Sniglets"
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php