On 29/09/09 18:59, Gary Johnson wrote:
>
> On 2009-09-29, Harry Putnam wrote:
>>> Move everything inside .vim/xpt/ to .vim/
>>>
>>> Or set 'runtimepath' to include .vim/xpt/
>>
>> How can I make vim show me its runtimepath?
>
> :set rtp?
>
> or
>
> :echo&rtp
>
>> I know about $VIMRUNTIME
>> But that isn't the same as the runtimepath... is it?
>
> No. See
>
> :help VIMRUNTIME
> :help rtp
>
> Note that I'm using the short form 'rtp' instead of 'runtimepath'
> because it's easier to type.
>
>> : echo $runtimepath<nothing>
>
> That would display the value of the environment variable
> runtimepath, if there was one.
>
>> :h runtimepath (Shows the default for various OS but not the actual
>> in use runtimepath)
>>
>> Can I add to the runtimepath like:
>>
>> :set runtimepath ~/.vim/*
>>
>> And that will just add .vim/* Without killing the default paths?
>>
>> How can I do something like what we do in the shell to add to path:
>> PATH=/my/extra/bin:$PATH
>>
>> I mean... keep the existing runtimepath and add something to it?
>
> There are several ways to add a component to 'runtimepath',
> including:
>
> :set rtp+=~/.vim
>
> :let&rtp .= ',~/.vim'
>
> See
>
> :help set+=
> :help let-&
>
> However, your 'runtimepath' should already include ~/.vim, so there
> should be no need to add it. Note also that there is no trailing
> slash needed. Also, depending on what you're trying to achieve, you
> may need or want to put your additional directory first in the
> 'runtimepath' rather than last, e.g.,
>
> :let&rtp = '~/.vim,' .&rtp
>
> If you want to add .vim/xpt to your 'runtimepath', you could do
> this:
>
> :set rtp+=~/.vim/xpt
>
> Regards,
> Gary
Or you could do this:
set rtp^=.vim/xpt rtp+=.vim/xpt/after
to add it before what is already there and allow it to contain an
|after-directory| added after all the rest.
See ":help :set^="
Beware, however, that the more directory trees are mentioned in
'runtimepath' and the longer it will take Vim to find its runtime
scripts and help files.
Best regards,
Tony.
--
"Hit any key to continue" does _not_ mean you should hit the power switch.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---