Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

vim read remote text file and web page from a URL

$
0
0
I'm like to open a remote well-formatted text file from vim directly:
vim http://tools.ietf.org/rfc/rfc4601.txt

it shows me the file, well formatted.

but then sometime I want to check a web page quickly:
vim http://www.google.com

adding these 2 lines the webpage can be rendered by elink and get read into
vim buffer.
let g:netrw_http_xcmd= "-dump >"
let g:netrw_list_hide= '^\..*'

but now, if I open my first text file, I got everything messed up in the
buffer -- I lost all my format...

what's the best netrw configuration to make it work in both scenario ?

thanks!

Viewing all articles
Browse latest Browse all 6551

Trending Articles