Bug#370082: Netrw's handling of file:// paths

Charles E Campbell Jr drchip at campbellfamily.biz
Fri Jan 4 17:27:36 UTC 2008


James Vega wrote:

>Charles,
>
>NetRW's handling of file:// paths (as opposed to the other paths is
>supports) causes Vim to use multiple buffers to open the file.  For
>example, "vim file://.vimrc" will show two buffers -- an empty one for
>"file://.vimrc" and the actual vimrc in the ".virmc" buffer.
>
>This exacerbates itself if the user uses the "file://localhost/..."
>syntax supported by NetRW.  In that case, 3 buffers are used -- the two
>mentioned above as well as an empty "localhost/.vimrc" buffer that
>causes Vim to display a "[New DIRECTORY]" message.
>
>Is it possible to adjust this so that file:// URIs behave as the others
>or is this simply an unavoidable limitation?
>  
>

My browser is showing that I seemed not to have replied to this email 
earlier...

The problem is that one can have a file called "file://whatever".  
Hence, when vim starts up, one gets that buffer.  Same with the 
localhost version.  To remove these, I'd have to have netrw bwipe 'em 
(netrw doesn't itself create them).  I've attached netrwPlugin.vim which 
does this sort of thing; please give it a try!

Regards,
Chip Campbell

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: netrwPlugin.vim
Url: http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080104/7b13c0f6/attachment.txt 


More information about the pkg-vim-maintainers mailing list