On Sun, 11 Mar 2012, Efraim Yawitz wrote:
Hi,
I've looked around the help and archives, but I can't find anything about this
problem:
How do I set netrw so that when I do :e http://someurl.html, vim
displays it as raw HTML code rather than formatting it like a browser?
It sounds like your g:netrw_http_cmd or g:netrw_http_xcmd is
misconfigured or pointing to something undesirable. Netrw shouldn't do
what you're describing by default. If you have `curl` or `wget`
available, I'd add:
let g:netrw_http_cmd = 'curl'
or:
let g:netrw_http_cmd = 'wget'
to your .vimrc. I've had problems in the past trying to get raw HTML
out of certain versions of `links`/`elinks`. (Both of them seem like
bad default choices for fetching raw HTML, considering there are at
least three different forks of `links`/`elinks`, each of which behaves
differently.)
--
Best,
Ben
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php