On 2010-07-27, Peter Odding wrote:
> Hi list,
> 
> I'm used to being able to do stuff like:
> 
>       :edit http://www.vim.org/
> 
> Because of the netrw plug-in. However when I execute the above command 
> in Vim 7.3c I get a bunch of gibberish (binary data), which is 
> apparently gzip-encoded data:
> 
>       :write !file -
>       /dev/stdin: gzip compressed data, from Unix
> 
> The strangest thing is that www.vim.org itself doesn't seem to use gzip 
> compression, so somehow the gzip compression happens on my machine?!
> 
>       $ curl -s http://www.vim.org/ | file -
>       /dev/stdin: HTML document text
> 
> I tried upgrading to the latest version of the netrw plug-in* but now 
> it's broken in a different way...:
> 
>       $ vim -u NONE -U NONE -c ':edit http://www.vim.org/'
>       "http://www.vim.org/"; Illegal file name

The netrw plugin won't be loaded if you start vim with "-u NONE".

Here's what I did to test the default netrw plugin without loading
my own plugins.

    $ vim -u NONE
    :let &rtp=$VIMRUNTIME
    :runtime! plugin/**/*.vim
    :edit http://www.vim.org/

works fine for me.  I get an HTML file that includes this line:

    <title>welcome home : vim online</title>

That ":runtime" command is from

    :help load-plugins

> Can anyone tell me how to fix this? Thanks in advance :-)

Not off-hand, but I hope that will give you a start in finding the
problem.

Regards,
Gary

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui