Mail Archives: cygwin/2013/01/24/02:58:48
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS
|
X-Spam-Check-By: | sourceware.org
|
To: | cygwin AT cygwin DOT com
|
From: | Andy <AndyMHancock AT gmail DOT com>
|
Subject: | Re: Cygwin gvim needs weird ritual to past from Windows clipboard
|
Date: | Thu, 24 Jan 2013 07:58:07 +0000 (UTC)
|
Lines: | 57
|
Message-ID: | <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>
|
Mime-Version: | 1.0
|
User-Agent: | Loom/3.14 (http://gmane.org/)
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.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
|
Chris Sutcliffe <ir0nh34d <at> gmail.com> writes:
|On 22 January 2013 11:55, Andy wrote:
|> I installed cygwin's gvim on Windows 7. I found that pasting from
|> the Windows clipboard into gvim doesn't work by clicking the middle
|> mouse button unless I go through a weird ritual that I discovered
|> by accident. If I don't do this, I get "E353: Nothing in register
|> *".
|
| Vim's Wiki has a section dedicated to having Cygwin (G)Vim interact
| with the Windows clipboard:
|
| http://vim.wikia.com/wiki/Using_the_Windows_clipboard_in_Cygwin_Vim
|
| There are a few options outlined in there that should help you out.
Alan Thompson <thompson2526 <at> gmail.com> writes:
| I always use the keyboard shortcuts to cut/paste from windows apps
| (e.g. Chrome/Firefox, etc).
|
| - Highlight the desired text (typically using "v" or "V" & motion).
| - Copy using "-*-Y (double quote, asterisk, y) to yank into the
| system clipboard
| - Paste into the windoze app (browser, etc) using Crtl-V as usual
|
| Also, note that for some things I use the Cygwin version of GVim
| (have to start the X11 server first), and for some things I use the
| native Windows version of GVim.
Richard Gribble <richard <at> gandalfwizard.us> writes:
| Have you tried this from some program other than vim? CTRL-C won't
| work from vim; you have to use:
| "+y
| to get the highlighted text onto the clipboard, and I don't think
| the mouse is designed to do that.
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.
--
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 -