On 2010-07-28, Peter Odding wrote:
> Hi Gary,
> 
> >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>
> 
> Thanks, I didn't realize that -u NONE prevents plug-ins in $VIMRUNTIME 
> from loading. This explains the "Illegal file name" message in my first 
> e-mail. However I wasn't able to load the netrw plug-in using the 
> commands you gave above, apparently because Vim starts in compatible 
> mode.

Sorry, my bad.  I did include "-N" for my test but neglected to
include it above.

> Unfortunately given the command line below Vim still starts with 
> the same gibberish I described in my first e-mail:
> 
> vim -u NONE -U NONE -N -c 'let &rtp = $VIMRUNTIME | runtime! 
> plugin/**/*.vim | edit http://www.vim.org/'

I may have found a clue.  I started vim much as you did but with
'verbose' set to 9 and the output saved to a file.

    vim -u NONE -U NONE -i NONE -N -V9vimout -c 'let &rtp = $VIMRUNTIME
    | runtime! plugin/**/*.vim | edit http://www.vim.org/'

Before displaying the contents of the URL, Vim displayed this at the
bottom of the screen:

    :!elinks 'http://www.vim.org/' -source > '/tmp/vOjHkf8/0'
    "/tmp/vOjHkf8/0" 412L, 16869C
    /home/garyjohn
    Press ENTER or type command to continue

The log file 'vimout' also contained some commands related to
elinks.  So I wonder if there might be something wrong or just
different about your installation of elinks.  If you don't have
elinks, netrw might try to use some other program and there might be
a problem with it.

On this RHEL4 system, "which elinks" returns "/usr/bin/elinks" and
"elinks -version" returns "ELinks 0.9.2 - Text WWW browser".

Try that and let's see what you get.

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