Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I do my day-to-day work on Windows 7 (no, that's not going to change) and often need to work with Linux running on Parallels. Switching between Windows and Linux desktops is a pain, so I've installed Cygwin+Xming (less complicated than CygwinX). I open a Cygwin command line using mintty, then do ssh -Y to get a Linux command line. Doing "vim" on the Linux command line causes the vim window to appear on my Windows desktop.

This is great, except that the new vim window doesn't automatically grab the focus, which stays with the mintty window. Years of habit cause me to start typing immediately without clicking on the new window. Having to switch manually is very jarring. Any way to make it automatic?

share|improve this question
    
Sounds like a Xming problem, doubt if there is any solution to it, try a bug report for them to fix. –  Tom Wijsman Jun 7 '12 at 21:10
    
Even if xming is stupid about focus, there ought to be some X command for directing the focus to a specific window. –  Isaac Rabinovitch Jun 15 '12 at 18:37
    
Is it just VIM that doesn't get focus, or other things? There is a cygwin mailing list. cygwin-subscribe@cygwin.com you may need subject "subscribe" And if you scroll down to the bottom of this page cygwin.com/lists.html there's an option to choose a cygwin related mailing list and subscribe to it. –  barlop Sep 13 '12 at 10:56
    
@barlop - it's not realted to cygwin at all, it's purely Xming issue. –  cji Nov 6 '12 at 1:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.