Serendipity

davorg on 2004-08-13T15:16:32

Because my paste buffer didn't contain what I thought it contained, I just discovered that you can type:

$ vim http://perl.com

And you get a buffer (called http://perl.com which isn't entirely useful if you want to save it) containing the HTML source of that web page.

Vim enhanced 6.2.531. But I can't find it documented anywhere.


Doc

Smylers on 2004-08-13T15:57:51

It's a plug-in that's doing this. Read :h netrw for the documentation.

I also discovered this by accident, but in a context that irritates me: if I'm composing an e-mail in Vim running in a Gnome Terminal and it's in insert mode then I can drag the icon from just to the left of the URL in Firefox, drop it into the terminal, and the URL gets inserted into the mail, which is great. But if I'm running Vim with its gui and I try this, rather than inserting the URL Vim starts trying to download and edit the webpage!

Smylers

Re:Doc

nicholas on 2004-08-13T19:01:50

emacs is consistent whether it's running in a terminal or talking directly to the GUI. This is most unexpected :-)

Even better:

Aristotle on 2004-08-14T19:07:19

vim scp://www/public_html/index.shtml

And as opposed to http:// scheme URLs, saving works as should be expected with scp:// ones. It just rocks.