Saturday, December 28, 2013

vim read remote text file and web page from a URL

I'm like to open a remote well-formatted text file from vim directly:

it shows me the file, well formatted.

but then sometime I want to check a web page quickly:

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!

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: