Tony Mechelynck wrote:
> On 19/06/09 21:02, Charles Campbell wrote:
>   
>> Tony Mechelynck wrote:
>>     
>>> I believe the difference is that the vimrc and gvimrc are sourced only
>>> once at startup (hence, only a small overall performance throwback for
>>> checking both names), while the 'runtimepath' directories are walked
>>> through at practically every autocommand event, and also for ":runtime"
>>> and ":doau" commands. I believe that adding two items in 'runtimepath',
>>> though it would work, might reduce performance somewhat.
>>>
>>>       
>> I'm not Bram, either -- but one can also just specify the runtimepath
>> via the environment
>> variable VIMRUNTIME with whatever path one deems suitable.
>>
>> Regards,
>> Chip Campbell
>>     
>
> That is not the 'runtimepath' but the $VIMRUNTIME, i.e., the _single_ 
> directory head of the tree containing the runtime files from the Vim 
> _distribution_, which must NOT be changed by the user.
>
> The default 'runtimepath' setting is (and I'm adding linebreaks for 
> clarity):
> on Windows:
>       ~/vimfiles,
>       $VIM/vimfiles,
>       $VIMRUNTIME,
>       $VIM/vimfiles/after,
>       ~/vimfiles/after
> on Unix:
>       ~/.vim,
>       $VIM/vimfiles,
>       $VIMRUNTIME,
>       $VIM/vimfiles/after,
>       ~/.vim/after
>
> The proposed change would be to make that:
> on Windows:
>       ~/vimfiles,
>       ~/.vim,
>       $VIM/vimfiles,
>       $VIMRUNTIME,
>       $VIM/vimfiles/after,
>       ~/.vim/after,
>       ~/vimfiles/after
> on Unix:
>       ~/.vim,
>       ~/vimfiles,
>       $VIM/vimfiles,
>       $VIMRUNTIME,
>       $VIM/vimfiles/after,
>       ~/vimfiles/after,
>       ~/.vim/after
>
> with seven instead of five trees in each case.
>
>   
Guess I should've tried it first.  What I was thinking was something 
along the lines of

set VIMRUNTIME=$HOME/.vim,/usr/local/share/vim/vim72

where the extra directory gets inserted into the path.  Unfortunately 
that doesn't appear to work, so VIMRUNTIME doesn't support a list of paths.

Regards,
Chip Campbell



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

Reply via email to