On Nov 8, 11:25 pm, Tony Mechelynck <[EMAIL PROTECTED]>
wrote:
...
> & in a query string should be passed as & or as %26 though many web
> pages don't use this, even though the W3C HTML guidelines require it.
>
> I suppose that ifnetrwhas problems with the question mark (maybe for
> internal reasons) it can always be passed as %3F (but of course not as
> %253F which would be double percent escaping and miss the goal).
When the URL above is re-written using "%" symbol, it does not work
either, because
now it is "%" that gets double qouted. Of course, you have to type '\
%' in the URL,
otherwise % would be replaced by the active file.
Currently, the autocommands plugin/netrwPlugin.vim load URLs by
constructing an
"exe Nread ... fnameescape(expand('<amatch>'))" command,
where fnameescape causes double quoted "?" or "%" symbols. However,
executing without
fnameescape (as done in the patch) is dangerous, because any "|" in
the URL would make vim
execute another command. Both issues would be avoided if autocommands
were calling
a function and passing it a string. Just my 2 cents. Cheers,
Pavol
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---