Solved

Cygwin VIM in WIndows 2007: Unable to copy text to Windows

Posted on 2016-10-10
10
90 Views
Last Modified: 2016-10-14
I am pretty sure I had this setup without any heroic efforts. Seems I just highlighted text and pressed enter and the text in VIM went to the copy buffer. Now at a new work place so I'm trying to get all my tools back and this isn't working any more. Any thoughts?
0
Comment
Question by:amigan_99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 30

Expert Comment

by:serialband
ID: 41839420
You probably set the Command Prompt Defaults to "Quick Edit Mode."  It's been a long while since I've installed Cygwin, but I seem to recall that it was associated with the Command Prompt Settings.

When it's not in "Quick Edit Mode," you'll need to right click to select the Mark command.  You should be able to click on the top left corner, select Defaults, then check the "Quick Edit Mode" Box.
0
 
LVL 1

Author Comment

by:amigan_99
ID: 41840808
Good guess. When you said that I was hopeful as this is a new laptop and perhaps QuickEdit had not been chosen for CMD prompts. Unfortunately - it was already checked and cygwin is still no allowing paste into VIM open document.
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 41841691
Are you running VIM in a CMD window or in a native cygwin mintty?
In a mintty you copy by highlighting, as in an xterm.
If a CMD window lets you highlight by dragging, you have QuickEdit turned on (which is what you want). Enter will then Copy, but so will right-click. So you can use right-click both to copy and paste.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:amigan_99
ID: 41842428
In the screen shot you can see the window I'm referring to. I launch cygwin and vim say foo.txt and enter some text. I can highlight that text. But if I go to say notepad and press ctrl-v - the expected pasting of that text does not occur. Same is true if I highlight and hit enter then go to notepad and ctrl-v (or rclick paste).

Now if I exit VIM in cygwin and just type whatever in the bash shell - copy and paste between cygwin and windows acts as expected. I just highlight in cygwin and then that's in my win copy buffer. Something about VIM in cygwin is mucking up the copy process.
ScrnGrab11-161013-11.04.jpg
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 41842799
I just tried  copy by highlighting from vim to a mintty, and it WFFM
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 41842806
I just tried ^V in Notepad (started from CMD) and that worked as well. Do you really have Windows 2007 on a new laptop?
ee.png
0
 
LVL 1

Author Comment

by:amigan_99
ID: 41842816
Windows 7 on a T430 Thinkpad. Perhaps I should reinstall cygwin. This will be a third time. The first time I installed it came with no VIM. The second time I selected three or four different VIM options in the installer. Perhaps one of those is gumming up the works. Do you know the specific option to choose to get good VIM? or perhaps there another editor that would work as well?
0
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 41843078
Very odd. I have Windows 7 and no problems. I installed VIM this morning: ran the installer and typed vim into the search box and selected it from among the Editors category.
There are hardly any Cygwin questions on EE because the mailing list is so good. I suggest you subscribe and ask your question there.
0
 
LVL 1

Author Closing Comment

by:amigan_99
ID: 41843082
OK - I'll try a reinstall and if that doesn't do it I'll reach out to the mailing list. Thanks much for the time and thought.
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 41843195
My pleasure
0

Featured Post

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question