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

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.


HTH,
Dennis Benzinger



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to