[PLUG] vim versus the clipboard

Carlos Konstanski ckonstan at lunarlogic.com
Thu Feb 24 00:28:46 UTC 2005


I select text in vim with the mouse, but do not hit CTRL-C or anything -
just the act of selection is enough.  Then I click the mouse wheel to
paste it into a web browser form element.  This move is my bread and
butter.

On Wed, 23 Feb 2005, Ovid wrote:

> Date: Wed, 23 Feb 2005 12:50:29 -0800 (PST)
> From: Ovid <publiustemp-plug at yahoo.com>
> To: plug at lists.pdxlinux.org
> Subject: [PLUG] vim versus the clipboard
> 
> Google fails me again and I've done a great job of spamming this list
> lately.  Thanks for your patience.
>
> I am editing a bunch of files in vim and I need to paste the contents
> into an HTML text area.  To do that I have to launch Kate or a similar
> text editor to copy stuff directly to the clipboard.  This is seriously
> slowing me down.
>
> With gvim, I just did ...
>
>  ggVG and "+y
>
> ... to copy the current buffer contents, but that doesn't work when I'm
> using vim in a terminal window.  I thought the "*" buffer would work,
> but it doesn't seem to.  How can I copy the current vim buffer file
> contents to the clipboard (on Fedora Core 2)?
>
> I'm hoping for something similar to "map ,cp :!pbcopy <%<CR>" on Mac OS
> X.
>
> Cheers,
> Ovid
>
> =====
> If this message is a response to a question on a mailing list, please send
> follow up questions to the list.
>
> Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list