Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. you may need subject "subscribe" And if you scroll down to the bottom of this page 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


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

Browse other questions tagged or ask your own question.