Edward Beach wrote:
>
> Hi Chip,
>
> I went looking through your autoload script v32b and found this chunk
> of code:
>
> " don't process plugins in system directories
> if firstdir == ""
> let firstdir= substitute(plugin,'[/\\][^/\\]\+$','','')
> " call Decho("setting firstdir<".firstdir.">")
> else
> let curdir= substitute(plugin,'[/\\][^/\\]\+$','','')
> " call Decho("curdir<".curdir.">")
> if curdir != firstdir
> " call Decho("skipping subsequent plugins: curdir<".curdir."> !=
> firstdir<".firstdir.">")
> break
> endif
> endif
>
> The comment suggest that if your script is in your system director (in
> my case C:\Program files\Vim\vim72\plugins) then they should not be
> included my ~/vim/GetLatest/GetLatestVimScript.dat file. But I don't
> understand what's going on with firstdir and curdir since I couldn't
> find them anywhere else in the script. I think this would explain why
> my system plugins (getScriptPlugin.vim, netrwPlugin.vim and
> vimballPlugin.vim) are added to my GetLatestVimScript.dat. Am I
> missing something?
>
firstdir is set just before the for loop starts, to the empty string "".
It seems to me that you're having a problem with my Windows blind eye -- I'm
primarily a Linux user. It looks like the code snippet above doesn't handle
Windows's notion of a system directory correctly. I'll fix that.
> Also with respect to not having any :AutoInstall: in the
> GetLatestVimScript.dat, you say:
>
>
>>> Your GetLatestVimScripts.dat file should not have any :AutoInstall:
>>> modifiers in it.
>>>
Sorry 'bout that; I should've written that users shouldn't insert any
:AutoInstall: modifiers.
They're inserted automatically by getscript when it goes over the user's
plugins looking
for " GetLatestVimScripts... comments which include the :AutoInstall:
modifier.
Regards,
Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---