Hi,
With vim 7.0 and netrw.vim version 98, I've encountered a problem
when trying to "vim http://somewhere/file.txt". This patch will fix
the problem:
============
--- netrw.vim 2006-10-06 13:53:03.567758750 +0800
+++ netrw.vim.orig 2006-10-06 13:47:02.757209500 +0800
@@ -753,7 +753,7 @@
call tar#Browse(tfile)
else
" call Decho("edit temporary file")
- e
+ e!
endif
" rename buffer back to remote filename
============
BTW, when I try to "vim http://somewhere/dir/" (with slash at the
end), it'll try to connect to ftp://somewhere/dir/ instead of returned
html. If you look at netrw.vim, there's a snippet of code like this:
if method == "ftp" || method == "http"
let method = "ftp"
let listcmd = g:netrw_ftp_list_cmd
else
let listcmd = substitute(g:netrw_list_cmd,'\<HOSTNAME\>',user.machine,'')
endif
If you remove the second line, everything is gonna be all right, even
the returned html code is parsed and vim will list the remote file
correctly. Does anybody know what's the second line for?
Help appreciated.
Regards,
Victor