I have some strange troubles with opening an url in vim. Judging from this answer, this should be pretty easy, but when I'm doing this:
$ vim http://www.ietf.org/rfc/rfc7386.txt
I getting a message
:!links 'http://www.ietf.org/rfc/rfc7386.txt' -source > '/tmp/vmEga7/1.txt'
and empty buffer (there is no /tmp/vmEga7/1.txt
file also). I don't fully understand, where I should look for the options that are related to the links
(some vim options, xdg configuration, etc.) - probably someone know about this and can explain it to me?
UPD I'm trying to debug this problem
$ vim -V20vimlog http://www.ietf.org/rfc/rfc7386.txt
and here is the part of vimlog. Is this line
function netrw#Nread..netrw#NetRead..<SNR>24_FileReadable returning #1
means, that resulting temporary file isn't readable?
UPD I'm still struggling with this trouble, no luck. It's strange, but the same is perfectly working in NeoVim. I figured out, that everything is ok about temporary files (they are created well and are readable). It looks like temporary file should be opened here:
" edit temporary file (ie. read the temporary file in)
if rfile =~ '\.zip$'
" call Decho("handling remote zip file with zip#Browse(tfile<".tfile.">)")
call zip#Browse(tfile)
elseif rfile =~ '\.tar$'
" call Decho("handling remote tar file with tar#Browse(tfile<".tfile.">)")
call tar#Browse(tfile)
elseif rfile =~ '\.tar\.gz$'
" call Decho("handling remote gzip-compressed tar file")
call tar#Browse(tfile)
elseif rfile =~ '\.tar\.bz2$'
" call Decho("handling remote bz2-compressed tar file")
call tar#Browse(tfile)
elseif rfile =~ '\.tar\.xz$'
" call Decho("handling remote xz-compressed tar file")
call tar#Browse(tfile)
elseif rfile =~ '\.txz$'
" call Decho("handling remote xz-compressed tar file (.txz)")
call tar#Browse(tfile)
else
" call Decho("edit temporary file")
NetrwKeepj e!
endif
but when control flow reaches line NetrwKeepj e!
nothing is happening.