Reply to message «Re: Plugin/addon managers», sent 19:40:48 25 July 2011, Monday by Eric Weir:
> The VAM zip package is in /.vam. Your instructions say to cd into
> vim-addon-manager before executing the unzip command. When I got the above
> result, I tried moving the zip package into /.vam/vim-addon-manager and
> executing the command from there and got the same result.
>
> I noticed that in the zip package the name is
> "ovim-addon-manager-0.4.3.zip. I tried executing the command with that
> name and got the same result.
If zip file was not downloaded I could say that it is the problem with `?'[1].
Don't know what is the cause in this case. Note though that if you pasted
commands correctly, wget would not have created ovim-addon-manager... zip
archive, so recheck what you have run.
That script works correctly in bash without any modifications on my system and
it should do the same on your system after you installed wget. If you know a
command that will print current selection to the terminal (like `xclip -o' or
`xsel'; you probably have neither) you can select this script and do
`{that_command} | bash' to avoid any possibilities of accidentally modifying it.
[1] `?' in url is a special character and thus whole url will be treated like a
pattern by the shell. As this pattern does not match (you almost definitely do
not have directory `http:' in newly created ~/.vam, not saying about directory
www.vim.org inside directory http:, directory scripts inside directory
http:/www.vim.org and so on) shell may do different things depending on its
options. Bash by default leaves pattern as-is, so wget will download URL
normally. Zsh will throw an error and refuse to run this command (by default,
there are also two other possibilites: removing pattern from arguments list
completely and acting like bash). Don't you see shell complaining about absent
matches? (message `no matches found: http://.....'). In any case escaping
question mark does not hurt.
Original message:
> On Jul 25, 2011, at 9:43 AM, ZyX wrote:
> > Replace this line with
> >
> > curl -o vim-addon-manager-0.4.3.zip \
> >
> > http://www.vim.org/scripts/download_script.php?src_id=13669
> >
> > . VAM won't be able to install anything if neither wget nor curl is
> > installed (first will also require some configuration, but knowing that
> > in Ubuntu there is wget and no curl and that Gentoo also uses wget by
> > default, I assumed that wget is more likely to be found in OS X which I
> > have never played with by myself).
>
> I found a copy of wget with an installer here
> http://www.merenbach.com/software/wget and now have it installed.
> Following your earlier instructions I successfully downloaded the VAM zip
> file, but when I got to the unzipping stage I got the following result:
>
> MacBookWeir:.vam ericweir$ cd vim-addon-manager
> MacBookWeir:vim-addon-manager ericweir$ unzip
> ../vim-addon-manager-0.4.3.zip unzip: cannot find or open
> ../vim-addon-manager-0.4.3.zip, ../vim-addon-manager-0.4.3.zip.zip or
> ../vim-addon-manager-0.4.3.zip.ZIP. MacBookWeir:vim-addon-manager
> ericweir$
>
> The VAM zip package is in /.vam. Your instructions say to cd into
> vim-addon-manager before executing the unzip command. When I got the above
> result, I tried moving the zip package into /.vam/vim-addon-manager and
> executing the command from there and got the same result.
>
> I noticed that in the zip package the name is
> "ovim-addon-manager-0.4.3.zip. I tried executing the command with that
> name and got the same result.
>
> I tried clicking on the zip package and nothing happened.
>
> Help appreciated.
>
> Thanks,
> ---------------------------------------------------------------------------
> --------------- Eric Weir
> Decatur, GA USA
> [email protected]
signature.asc
Description: This is a digitally signed message part.
