Kamaraju S Kusumanchi wrote:
Let's say I open up a webpage, select some text and paste it into vim. Then
all I see in vim is the text I see on the browser. While this is OK most of
the times, sometimes I wish there is a way to paste the actual HTML code
directly into the vim.
Selecting "view source of the webpage" and then copy pasting into vim will
work. But it is very cumbersome and time consuming. So this is not an
option for me.
Currently the editor in docs.google.com does what I need, Is there any way
the same can be achieved by vim?
thanks
raju
Vim cannot get from the clipboard what isn't there: when you select text in a
browser (other than in View Source), what gets put onto the clipboard is the
text, not the source; IOW, the formatting tags aren't there.
If your browser allows it, you can elect to view the source with gvim (e.g.,
with Firefox and the ViewSourceWith extension); otherwise, the only other way
is to select the source text in the View Source window. Depending on your
browser, it may be not as time-consuming as that: e.g., in Firefox or
SeaMonkey (and probably also in Netscape 6 or later, but I haven't checked),
Ctrl-U views the source of the current page; then hit (guess what) the / key
to enter a search string.
Best regards,
Tony.
--
Cold, adj.:
When the local flashers are handing out written descriptions.