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