delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/24/14:13:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
X-Received: by 10.194.58.13 with SMTP id m13mr5094288wjq.18.1359054726688; Thu, 24 Jan 2013 11:12:06 -0800 (PST)
In-Reply-To: <loom.20130124T084733-301@post.gmane.org>
References: <loom DOT 20130122T174429-370 AT post DOT gmane DOT org> <CAD+0NRCdxOFde9Hf2mgnUbo_HjMVLNMwrwBe-KcKK7j4QiwHmw AT mail DOT gmail DOT com> <loom DOT 20130124T084733-301 AT post DOT gmane DOT org>
Date: Thu, 24 Jan 2013 11:12:06 -0800
Message-ID: <CAN4-eHKWBNTxKNx6VZLV+7NLgXNM8AQg2pbSYCLdy01+Tr0Svw@mail.gmail.com>
Subject: Re: Cygwin gvim needs weird ritual to past from Windows clipboard
From: Alan Thompson <thompson2526 AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, Jan 23, 2013 at 11:58 PM, Andy <AndyMHancock AT gmail DOT com> wrote:
>
> Guys, thanks for your replies.  I might not have been clear enough in
> my original post, but the problem is in attempting to copy from a
> Windows app and pasting into Cygwin's gvim.  Correct me if I'm wrong,
> but your responses (and the wiki site) are directed at copying from
> gvim to Windows.
>
> I'm pretty sure I tried Shift-Insert, and that didn't solve the
> problem.  To be sure, the problem isn't *always* present, but it is
> usually  present.  When it is, nothing I've tried will fix it except
> the trick of highlighting arbitrary text in gvim before trying to copy
> something from a Windows app.
>
> About PC-based gvim, I also have that.  But I tend to use the gvim
> text buffer as a bash command console, concocting bash code on the fly
> and either shelling out to generate/filter text or writing some lines
> to !bash.  It's tricky to set up vimrc so that PC-based gvim can do
> this, though I think I've mostly got that problem solved.  Just as
> vexing, however, is the constant need to convert the path to/from
> bash/cygwin posix form to Windows form.  So when I need to bash
> around, I use the cygwin gvim.
>

Everything I said works both ways, both Cygwin->Windoze and
Windoze->Cygwin.  The only difference in GVim is whether you use yank
("Y") or put ("P").  This works for both the win32 version of GVim and
the Cygwin X11 version of GVim.  To be specific:

 - Highlight something in your browser and type Crtl-C
 - Go into GVim and type "*P  (i.e. double quote-asterisk-capital P).

GVim sees the windows clipboard as a special buffer named * (i.e.
asterisk, star, whatever).  The double-quote references a buffer, star
is the name of the buffer, and capital P means "put contents here".
Of course, both yank and put have both uppercase versions (whole
lines) and lowercase versions (partial lines).

Have you tried this?

Alan Thompson

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019