Bug#334868: netrw.vim does not handle properly %xx escaping and
relative URLs in the "file:" URL scheme
Stefano Zacchiroli
zack at debian.org
Thu Oct 20 12:55:52 UTC 2005
Body of the previous bug report (which was missing due to a bug in
reportbug :-)
--- CUT HERE ---
Plugin netrw.vim has two issues in the handling of file:// URLs:
1) %xx escaping is not handled properly. For example, opening
file:///a%20b.txt will result in vim opening something weird since
the '%' sign will be expanded to the name of the file being opened(!)
This is an issue expecially with gvim and gnome since the "open with"
feature of nautilus escapes spaces and other special characters with
the '%xx' notation
2) relative URLs are not properly handled. The convention is that 2
slashes URLs in the file scheme are relative, while those with 3
slashes are absolute. Thus, for example:
file://a -> a in the cwd
file:///a -> /a
The attached patch solves both issues implementing:
- URI %xx unescaping
- escaping of special characters for the "e:" command
- removal of "file://" prefix on autocommands
Cheers.
--- CUT HERE ---
--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20051020/f3901f6c/attachment.pgp
More information about the pkg-vim-maintainers
mailing list